Jump to content

MAKING A SUSPECT HAVE NOTHING WRONG WITH THEM


Deactivated Member

Recommended Posts

I'm making another vehicle crash callout, and I want the player to check the suspect out, and I want the suspect to have no warrants or anything bad on them, and when the player checks the vehicle plate, I don't want it to have any flags.

 

Suspect is called SuspectPed (For easier reference)

Suspect's vehicle is called SuspectVehicle

Link to comment
Share on other sites

Persona SuspectPersona = Functions.GetPersonaForPed(Suspect);
Functions.SetPersonaForPed(Suspect, new Persona(Suspect, SuspectPersona.Gender, SuspectPersona.BirthDay, 0, SuspectPersona.Forename, SuspectPersona.Surname, ELicenseState.Valid, 0, false, false, false));

Just rename Suspect to SuspectPed

Link to comment
Share on other sites

Would anyone know how to make the player talk to the suspect after checking the vehicle licence plate? For example:

 

I want the player to talk to the suspect (I've already done) and then I want the player to walk behind the vehicle, run the plate and then go back to the suspect and talk. This is my talking to the suspect part.

 

            calloutState = ECalloutState.SpokeWithVictimPed;
            if (SuspectPed)
            {
                if (SuspectPed.IsAlive)
                {
                    if (Game.LocalPlayer.Character.Position.DistanceTo2D(SuspectPed) <= 2.5f)
                    {
                        SuspectPed.PlayAmbientSpeech("GENERIC_HI");

                        calloutState = ECalloutState.SpeakWithSuspect;
                    }
                }
            }
            calloutState = ECalloutState.SpeakWithSuspect;
            if (SuspectPed)
            {
                if (SuspectPed.IsAlive)
                {
                    if (Game.LocalPlayer.Character.Position.DistanceTo2D(SuspectPed) <= 2.5f)
                    {
                        if (Game.IsKeyDown(Keys.T))
                        {
                            if (dialog == EDialog.Dialog1)
                            {
                                if (dialog3WithSuspectPedIndex < dialog3WithSuspectPed.Count)
                                {
                                    Game.DisplaySubtitle(dialog3WithSuspectPed[dialog3WithSuspectPedIndex]);
                                    dialog3WithSuspectPedIndex++;
                                }
                            }
                        }
                    }
                }
            }
        }

 

 

So I've done that, but I don't know how to do something for a vehicle  to run it's plate and go back to the suspect and to them again

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...