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.

Getting persona data through LSPDFR computer w/o ped

Featured Replies

Hi guys!

Just curious if its possible to access the LSPDFR name database without a Ped, similar to typing in the name in the computer.  I'd like to add this to the MDT, if it's not possible I can just generate a list and make it pull random first/last names & DOBs.

Thanks!

 

 

using LSPD_First_Response.Engine.Scripting.Entities;
	String fullname = Persona.GetRandomFullName();

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.

If you know a ped with that name exists, you can do something like this (syntax off the top of my head):

foreach (Ped ped in World.GetAllPeds()) 
{
	if (ped.Exists()) {

		Persona pers = Functions.GetPersonaForPed(ped);
		if (pers.FullName == NameUserEntered) 
		{
			return pers;
		}
	}
}

I use something similar for my British Policing Script and I think the LSPDFR computer uses a similar method to this as well.

Edited by Albo1125

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
7 hours ago, Darkmyre said:

 


using LSPD_First_Response.Engine.Scripting.Entities;
	String fullname = Persona.GetRandomFullName();

 

I never knew this existed!!! Thank you!!!

2 hours ago, Albo1125 said:

If you know a ped with that name exists, you can do something like this (syntax off the top of my head):


foreach (Ped ped in World.GetAllPeds()) 
{
	if (ped.Exists()) {

		Persona pers = Functions.GetPersonaForPed(ped);
		if (pers.FullName == NameUserEntered) 
		{
			return pers;
		}
	}
}

I use something similar for my British Policing Script and I think the LSPDFR computer uses a similar method to this as well.

Ahhhh okay, so that would return the info for that specific ped the person had stopped then, just like the LSPDFR computer?  That makes sense!  Thank you!

 

 

  • 5 months later...
  • Author
35 minutes ago, SuperNish35 said:

#stupidquestion does that go in OnCalloutAccepted()?

Not sure what you're talking about/asking.  This is used in a separate plugin that doesn't utilize the LSPDFR callout system.

 

 

  • Author
6 minutes ago, SuperNish35 said:

What is this used in?

This is used in my MDT (in my signature below).  I don't recall where I called it -- it's somewhere in a class used after the player types in a name of a ped into the text box.

 

 

 

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.