Example #1
0
        private void OnAborted(object sender, EventArgs eventArgs)
        {
            PedGroup   group = PlayerPed.CurrentPedGroup;
            List <Ped> peds  = (from ped in (IEnumerable <Ped>)@group
                                where !ped.IsPlayer
                                select ped).ToList();

            group.Dispose();
            while (peds.Count > 0)
            {
                Ped ped2 = peds[0];
                ped2.Delete();
                peds.RemoveAt(0);
            }
        }
        private void OnAborted(object sender, EventArgs eventArgs)
        {
            PedGroup currentPedGroup = this.PlayerPed.get_CurrentPedGroup();
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: method pointer
            List <Ped> list = ((IEnumerable <Ped>)Enumerable.Where <Ped>((IEnumerable <M0>)currentPedGroup, (Func <M0, bool>)(PlayerGroupManager.\u003C\u003Ec.\u003C\u003E9__14_0 ?? (PlayerGroupManager.\u003C\u003Ec.\u003C\u003E9__14_0 = new Func <Ped, bool>((object)PlayerGroupManager.\u003C\u003Ec.\u003C\u003E9, __methodptr(\u003COnAborted\u003Eb__14_0)))))).ToList <Ped>();

            currentPedGroup.Dispose();
            while (list.Count > 0)
            {
                ((Entity)list[0]).Delete();
                list.RemoveAt(0);
            }
        }