/// <summary> /// Arrests the ped as would happen using the Ped Management menu. Must use Grab feature to move the ped around and place in vehicle. /// </summary> /// <param name="suspect">The ped to be arrested.</param> public static void ArrestPed(Ped suspect) { if (suspect) { Game.LogTrivial("Arrest Manager API arresting suspect."); PedManager.ArrestPed(suspect); } }
public static void ArrestPed(Ped suspect) { if (suspect) { Game.LogTrivial("!!!!! ARREST MANAGER+ WARNING !!!!!"); Game.LogTrivial("Someone is calling deprecated API function ArrestPed"); Game.LogTrivial("This is not supported, and will be removed in the future!"); Game.DisplayNotification("~r~~h~ARREST MANAGER+ WARNING~w~~n~Deprecated API function ArrestPed is being called. Please notify the user plug-in author of the currently executing call-out, event or feature."); PedManager.ArrestPed(suspect); } }