Created
March 23, 2019 23:21
-
-
Save RiverGrande/6361b57bb5231762c75d127df5a4cb02 to your computer and use it in GitHub Desktop.
ArrestFunctions for LSPDFR 0.3.1 ? +
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ArrestFunctions | |
{ | |
public List<Ped> GetPedBeingArrestedByPed(Ped Ped) | |
{ | |
List<Ped> ArrestingPeds = new List<Ped>(); | |
foreach(Ped ArrestPed in World.GetAllPeds()) | |
{ | |
if(Functions.IsPedGettingArrested(ArrestPed)) | |
{ | |
if (Functions.GetPedArrestingOfficer(ArrestPed) == Ped) | |
{ | |
ArrestingPeds.Add(ArrestPed); | |
} | |
} | |
} | |
return ArrestingPeds; | |
} | |
public List<Ped> GetPedBeingArrestedByPlayer() | |
{ | |
List<Ped> ArrestingPeds = new List<Ped>(); | |
foreach (Ped ArrestPed in World.GetAllPeds()) | |
{ | |
if (Functions.IsPedGettingArrested(ArrestPed)) | |
{ | |
if (Functions.GetPedArrestingOfficer(ArrestPed) == Game.LocalPlayer.Character) | |
{ | |
ArrestingPeds.Add(ArrestPed); | |
} | |
} | |
} | |
return ArrestingPeds; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment