public static uint DeclareSubjectStatus(Ped ped) { string status; string radioStatus; if (!ped.Exists()) { status = "<font color=\"red\">escaped</font>"; radioStatus = "SUSPECT_LAST_SEEN IN_OR_ON_POSITION ATTEMPT_FIND"; } else if (Integreate.StopThePed && ped.IsDead && ArrestedBySTP.Contains(ped)) { status = "<font color=\"lime\">in custody</font>"; radioStatus = "SUSPECT_APPREHENDED"; } else if (ped.IsDead) { status = "<font color=\"lime\">down</font>"; radioStatus = "PASSIFIED"; } else if (Functions.IsPedArrested(ped)) { status = "<font color=\"lime\">in custody</font>"; radioStatus = "SUSPECT_APPREHENDED"; } else { status = "<font color=\"blueviolet\">innocent</font>"; radioStatus = ""; } Functions.PlayScannerAudioUsingPosition("ATTENTION_ALL_UNITS " + radioStatus + " NO_ADDITIONAL_SUPPORT", Game.LocalPlayer.Character.Position); return(ScannerHelper.DisplayDispatchDialogue("Dispatch", "Code 4, suspect is " + status)); }
public static uint DecalreSubjectInformation(Ped ped) { Persona p = Functions.GetPersonaForPed(ped); string license; switch (p.ELicenseState) { case ELicenseState.Valid: license = "Valid"; break; default: case ELicenseState.None: case ELicenseState.Unlicensed: license = "None"; break; case ELicenseState.Suspended: license = "Suspended"; break; case ELicenseState.Expired: license = "Expired"; break; } string wanted; if (p.Wanted) { wanted = "Suspect is <font color=\"red\">wanted</font>"; } else { wanted = "has <font color=\"limegreen\">no warrants</font>"; } return(ScannerHelper.DisplayDispatchDialogue("Dispatch", $"Persona information: <br/> - License {license}<br/> - {wanted}.")); }