public void AskForID(OccupantSelector occupantselect) { GameFiber.StartNew(delegate { PlaySpecificSpeech("Kifflom"); Game.LocalPlayer.Character.Tasks.AchieveHeading(Game.LocalPlayer.Character.CalculateHeadingTowardsEntity(Suspect)); GameFiber.Wait(1500); if (occupantselect == OccupantSelector.Driver) { Suspect.ShowDrivingLicence(); } else if (occupantselect == OccupantSelector.Passengers) { foreach (Ped occupant in SuspectVehicle.Passengers) { occupant.ShowDrivingLicence(); } } else if (occupantselect == OccupantSelector.AllOccupants) { foreach (Ped occupant in SuspectVehicle.Occupants) { occupant.ShowDrivingLicence(); } } Game.LocalPlayer.Character.Tasks.Clear(); }); }