Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Setting ped as wanted in the police computer?

Featured Replies

I've searched around and not found anything on this, maybe I'm just bad at looking...but...

How do I set a Ped as wanted by the LSPD in the LSPDFR police computer? Aka so if I check their ID, they will show up as wanted.

 

Thank you!

48 minutes ago, Hystery said:

You don't set up people as wanted. They're either wanted or they're not.

This is the development forum, the devs can magically change this kind of thing ^.^

To set the ped as wanted, use Functions.SetPersonaForPed to set LSPDFR computer persona for the ped. This allows you to set the ped as wanted amongst other things.

I recommend you check out my guide that documents the API too:

 

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

  • Author

 

On 5/15/2016 at 1:21 PM, Hystery said:

You don't set up people as wanted. They're either wanted or they're not.

What if I make a plugin just so you can set peds as wanted hmm? :P

On 5/15/2016 at 2:11 PM, Albo1125 said:

This is the development forum, the devs can magically change this kind of thing ^.^

To set the ped as wanted, use Functions.SetPersonaForPed to set LSPDFR computer persona for the ped. This allows you to set the ped as wanted amongst other things.

I recommend you check out my guide that documents the API too:

 

Thank you! I knew it had to be possible, I just didn't see where. Also somehow missed that link lol. Thank you very much!

 

Edited by drsn0w

25 minutes ago, drsn0w said:

What if I make a plugin just so you can set peds as wanted hmm? :P

Yeah my bad, I'm just used to people asking so many stupid silly questions, it goes to my head.

They're everywhere.

I know it.

We really do need a Functions.SetPedAsWanted(bool) or a way to set ped.isWanted, though.

My YouTube Channel: Darkmyre Gaming (Australian LSPDFR patrols, plugins in development, and other games)

My Discord Server | AusGamer Network

 

Please do not PM me for technical support or bug reports, use the appropriate forum or plugin's comments instead.

9 hours ago, Darkmyre said:

We really do need a Functions.SetPedAsWanted(bool) or a way to set ped.isWanted, though.

You could write your own extension method that would do this. 

Stealth22
LSPDFR Tester | Plugin Developer
My Plugins: Code 3 Callouts | Traffic Control | Keep Calm | ALPR+

Please do not PM me for any kind of technical support.
I unfortunately do not have enough free time to answer every PM that I get. For issues with my plugins, please post in the comments section of the file, or it's forum thread. You'll get a much quicker response from me there than if you send me a PM; I do my best to respond to every question in the comments sections. For API/programming questions, please post them in the API Development forum, so all developers can benefit from the answer as well. Thanks!

  • Author
11 hours ago, Stealth22 said:

You could write your own extension method that would do this. 

Actually that's a great idea. I'm going to do that in my plugins :D Thank you!

  • Author
On 5/15/2016 at 2:11 PM, Albo1125 said:

This is the development forum, the devs can magically change this kind of thing ^.^

To set the ped as wanted, use Functions.SetPersonaForPed to set LSPDFR computer persona for the ped. This allows you to set the ped as wanted amongst other things.

I recommend you check out my guide that documents the API too:

I've just gotten around to messing with this, and I still can't seem to figure it out. The Wanted property of Persona is read only...

EDIT: Nevermind, I can just copy the attributes of the current Persona into a new Persona :D

Edited by drsn0w

  • 10 months later...
On 5/22/2016 at 2:02 PM, drsn0w said:

I've just gotten around to messing with this, and I still can't seem to figure it out. The Wanted property of Persona is read only...

EDIT: Nevermind, I can just copy the attributes of the current Persona into a new Persona :D

 

On 5/17/2016 at 10:08 PM, drsn0w said:

Actually that's a great idea. I'm going to do that in my plugins :D Thank you!

 

Did you ever get around to writing that extension method? I'm still slightly new to this, and need to change the wanted status of peds in my callout.

Basically, here is some example code:

 

private Persona PedPersona;

private DateTime PedOneBirthday;

private Ped PedOne;

 

PedOne = new Ped("MODEL", Coords, Heading);

PedOneBirthday = new DateTime(*year, month, day*);

PedPersona = new Persona(*enter details here, include the PedOneBirthday variable in the birthday part of the constructor*);

Functions.SetPersonaForPed(PedOne, PedPersona);

 

And voila, you can now set peds as wanted, whether they are agents or cops, you can set their name, gender, age, citation amount, stop amount, etc.

 

On 4/10/2017 at 6:49 PM, Lieutenant Dan said:

Basically, here is some example code:

 

private Persona PedPersona;

private DateTime PedOneBirthday;

private Ped PedOne;

 

PedOne = new Ped("MODEL", Coords, Heading);

PedOneBirthday = new DateTime(*year, month, day*);

PedPersona = new Persona(*enter details here, include the PedOneBirthday variable in the birthday part of the constructor*);

Functions.SetPersonaForPed(PedOne, PedPersona);

 

And voila, you can now set peds as wanted, whether they are agents or cops, you can set their name, gender, age, citation amount, stop amount, etc.

 

 

I know how to get a Peds persona, create one, and set one... but is there a way to copy all the information from a randomly spawned peds persona into a new persona except to change the wanted flag? I'm developing an arrest warrant call out where I want the spawned ped to always come up as wanted.

Why don't you make a ped persona and use the GetRandomFullName function, as well as generating random ints for things like citations, stops, age, etc?

Here is a random int code example:

 

Random rnd = new Random();

int randomInt = 0;

 

randomInt = rnd.Next(*MINIMUM*, *MAXIMUM*);

EDIT: The GetRandomFullName function is located in Persona class.

 

Persona.GetRandomFullName();

2 hours ago, Lieutenant Dan said:

Why don't you make a ped persona and use the GetRandomFullName function, as well as generating random ints for things like citations, stops, age, etc?

Here is a random int code example:

 

Random rnd = new Random();

int randomInt = 0;

 

randomInt = rnd.Next(*MINIMUM*, *MAXIMUM*);

EDIT: The GetRandomFullName function is located in Persona class.

 

Persona.GetRandomFullName();

 

//Create persona for ped.
            pedBirth = new DateTime(1967, 8, 22);
            cited = Cite.Next(0, 6);
            stop = Stopped.Next(0, 10);
            pedPersona = new Persona(suspect, LSPD_First_Response.Gender.Random, pedBirth, cited, Persona.GetRandomFullName(), Persona.GetRandomFullName(), ELicenseState.Valid, stop, true, false, false);

Thanks for your help and sorry for my ignorance, lol. But is something like this correct?

  • Author
On 4/9/2017 at 11:12 PM, AndyAlmighty said:

 

 

Did you ever get around to writing that extension method? I'm still slightly new to this, and need to change the wanted status of peds in my callout.

I did yes, I can dig it up if you'd like

21 hours ago, AndyAlmighty said:

 


//Create persona for ped.
            pedBirth = new DateTime(1967, 8, 22);
            cited = Cite.Next(0, 6);
            stop = Stopped.Next(0, 10);
            pedPersona = new Persona(suspect, LSPD_First_Response.Gender.Random, pedBirth, cited, Persona.GetRandomFullName(), Persona.GetRandomFullName(), ELicenseState.Valid, stop, true, false, false);

Thanks for your help and sorry for my ignorance, lol. But is something like this correct?

 

Take a look at this: https://gist.github.com/drsn0w/4a8554ffe157513f4081389462ae73e0

 

EDIT: Obviously go ahead and change the namespace since mine says RoutinePoliceWork :)

Edited by drsn0w

1 hour ago, drsn0w said:

I did yes, I can dig it up if you'd like

 

Take a look at this: https://gist.github.com/drsn0w/4a8554ffe157513f4081389462ae73e0

 

EDIT: Obviously go ahead and change the namespace since mine says RoutinePoliceWork :)

Thank you! I was thinking about it last night and figured it would be something like this. Good luck on your callouts and thank you once again!

  • 7 years later...
On 5/16/2016 at 9:06 PM, Hystery said:

Yeah my bad, I'm just used to people asking so many stupid silly questions, it goes to my head.

They're everywhere.

I know it.

As I learned in life and the Marine Corps is that THERE IS NO SUCH THING AS A STUPID QUESTION.  Facts of life.....

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.