public static bool CanBeSeenByCops(SuspectHandler suspect) { foreach (CopUnitHandler Unit in DangerousIndividuals.CopsChasing) { if (Unit.Leader.IsInRangeOf(suspect.Criminal.Position, 300f) && Util.CanPedSeePed(Unit.Leader, suspect.Criminal, false)) { return(true); } } return(false); }
public static string ClosestCopUnitName(SuspectHandler suspect) { string name = ""; CopUnitHandler Unit = DangerousIndividuals.GetClosestCop(suspect, true, true); if (Unit != null) { name = Unit.CopVehicle.FriendlyName + " unit"; } return(name); }