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 vehicle owner name for Police Radio

Featured Replies

I'm trying to set the owner of a vehicle using the following code:

            Persona ownerPersona = Functions.GetPersonaForPed(owner);
            Game.LogTrivial("Owners name is " + ownerPersona.FullName);
            Functions.SetVehicleOwnerName(myVehicle, ownerPersona.FullName);
            string oName = Functions.GetVehicleOwnerName(myVehicle);
            Game.LogTrivial("Vehicle Owners name is " + oName);

According to the log, the name is being set correctly, yet whenever I run the plate with Police Radio I'm getting some other random name? Am I doing something wrong, or is it not possible to force a ped to own a vehicle with Police Radio? Running the plate via the normal LSPDFR radio returns the correct name, but most people use Police Radio so I'd prefer it to be compatible with both.

If it makes any difference, I'm spawning the owner outside the vehicle, warping them into it, then assigning them the Wander task for part of the callout. The name setting code above is being called after the ped is wandering, when the officer arrives on scene.

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.

IIRC, Police Radio's registered owner isn't consistent with LSPDFR. It sometimes uses the driver of the vehicle or alters the owner in favour of a random event it created.

Edited by PieRGud

  • 5 months later...
  • Author
2 hours ago, LowRid3R said:

I´m now at the same problem... 

How do i make sure that PoliceRadio shows the same persona as i set within LSPDFR API ?

 

BR

It's not currently possible, but I believe @Albo1125 is working on updating police radio so it works like this.

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.

Call me stupid, but if you spawned the ped in the vehicle (at the same time the vehicle is spawned) and programmed them to go to the desired location, would Police Radio register them as the proper owner?

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.