Jump to content

Wanted Peds?


AllenKennedy

Recommended Posts

How do I make it so when I get the ID of someone spawned in by a plugin, it will always be somebody wanted?

 

Also, I hate to be a nuisance, but does anyone know how I can set the heading of spawned vehicles/peds etc.?

Edited by AllenKennedy
more questions.

Get your facts first, then you can distort them as you please. - Mark Twain

Link to comment
Share on other sites

Look into Functions.SetPersonaForPed. That will allow you to set the persona as wanted. 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

Link to comment
Share on other sites

1 hour ago, PNWParksFan said:

Look into Functions.SetPersonaForPed. That will allow you to set the persona as wanted. 

I had a look into that beforehand, I don't really understand how I can make it so the assigned persona get's a wanted flag or not.

Get your facts first, then you can distort them as you please. - Mark Twain

Link to comment
Share on other sites

When you create a persona object, there is a constructor for all of that:

uoB1NMa.png

Oddly, it appears the only way to set a Persona wanted is when you create one in the constructor which is a tad annoying seeing as you have to define everything.

I'd recommend copying most of that info from an existing persona for simplicity's sake.

 

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...