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.
The latest updated version of RAGE Plugin Hook, required to play LSPDFR, can be found inside the LSPDFR download. It is not currently available on the RAGE Plugin Hook website.

Need help with police cars extras

Featured Replies

Hey guys,

Not sure if this is the appropriate section for this post, correct me if I'm wrong !

I just installed F5544's CVPI and I noticed cars spawn with random extras. So some cars are slicktop, others aren't, etc... 

I would want to change that, so all cars spawning share the same configuration, more or less.

My question is, how do you edit an extra/option to make sure they don't spawn with/without this specific extra ? (ex: I don't want slicktops spawning anymore.)

Thanks in advance,

Wilco

Untitled.png

Go into the vehicles.meta and add/edit the following on the CVPI's entry.

<flags>FLAG_HAS_LIVERY FLAG_EXTRAS_REQUIRE FLAG_EXTRAS_STRONG FLAG_LAW_ENFORCEMENT FLAG_EMERGENCY_SERVICE FLAG_NO_RESPRAY FLAG_DONT_SPAWN_IN_CARGEN FLAG_REPORT_CRIME_IF_STANDING_ON</flags>
      <type>VEHICLE_TYPE_CAR</type>
      <plateType>VPT_FRONT_AND_BACK_PLATES</plateType>
      <dashboardType>VDT_GENTAXI</dashboardType>
      <vehicleClass>VC_EMERGENCY</vehicleClass>
      <wheelType>VWT_MUSCLE</wheelType>
      <trailers />
      <additionalTrailers />
      <drivers>
        <Item>
          <driverName>S_M_Y_Cop_01</driverName>
          <npcName />
        </Item>
      </drivers>
      <extraIncludes />
      <doorsWithCollisionWhenClosed />
      <driveableDoors />
      <bumpersNeedToCollideWithMap value="false" />
      <needsRopeTexture value="false" />
      <requiredExtras>EXTRA_1 EXTRA_2</requiredExtras>
      <rewards>

Note that this was originally intended for F5544's Dual Lightbar models, so you'll likely need to change it to only EXTRA_1 or 2 depending on which it is.

  • Author

Thanks for replying,

I did what you said, though, cars still spawn with random extras,

I made sure all vehicles.meta including the car were edited...

EDIT : I want all cars to spawn naturally with extra 1 (4 lights in back) and extra 2 (lightbar), so I entered it like so :

 <requiredExtras>EXTRA_1 EXTRA_2</requiredExtras>  sounds correct ?

 

Untitled.png

Edited by Wilco062

2 hours ago, Wilco062 said:

Thanks for replying,

I did what you said, though, cars still spawn with random extras,

I made sure all vehicles.meta including the car were edited...

EDIT : I want all cars to spawn naturally with extra 1 (4 lights in back) and extra 2 (lightbar), so I entered it like so :

 <requiredExtras>EXTRA_1 EXTRA_2</requiredExtras>  sounds correct ?

 

I believe what's happening here is that the <requiredExtras> line actually only picks 1 of the 2 at random, it won't spawn both at the same time (And this is likely why this was intended for use on the dual lightbar models), there's a line for it to add every extra, but that would cause you to have 2 push bars at once. So unless there's a line that I don't know of (And there very well could be), you'll have to choose one or the other.

Sorry, hopefully someone else can chime in on this and help you out.

  • Author

 

23 hours ago, MoreTextures said:

I believe what's happening here is that the <requiredExtras> line actually only picks 1 of the 2 at random, it won't spawn both at the same time (And this is likely why this was intended for use on the dual lightbar models), there's a line for it to add every extra, but that would cause you to have 2 push bars at once. So unless there's a line that I don't know of (And there very well could be), you'll have to choose one or the other.

Sorry, hopefully someone else can chime in on this and help you out.

That would make a lot of sense since I never saw a car spawn with those two extras at the same time.

Thanks for helping ! I'll search around to check how to put multiple requirements on multiple extras...

Wilco

 

EDIT : What would the line <extraIncludes /> do exactly ?

Edited by Wilco062

55 minutes ago, Wilco062 said:

EDIT : What would the line <extraIncludes /> do exactly ?

I'm actually not familiar with that line, I'll have to test that one out right now. Thank you for bringing that to my attention.

 

Edit: Sadly, entering <extraIncludes>EXTRA_1 EXTRA_2</extraIncludes> had no effect what so ever. But I'll let you know if I find an alternative or the proper way to use it if that's the case, as it may require enabling a flag that I don't know the name of for it to operate.

Edited by MoreTextures

  • 2 months later...

A bit of a necro post so I apologize but I am having a similar issue. I took Lundy's Highway polara and placed it in the undercover slot of police 4. But now it spawns with no light bar a portion of the time. These are the flags for it.

 

   <flags>FLAG_HAS_LIVERY EXTRAS_ALL  FLAG_EXTRAS_REQUIRE FLAG_EXTRAS_STRONG FLAG_LAW_ENFORCEMENT FLAG_EMERGENCY_SERVICE FLAG_NO_RESPRAY FLAG_DONT_SPAWN_IN_CARGEN
FLAG_REPORT_CRIME_IF_STANDING_ON</flags>

 

I know I fixed this a long while back but cannot remember how. I do know it was related to the flags though. Any help or insight would be appreciated it. 

Still alive(ish)

On 1/21/2016 at 0:18 AM, ODSTGeneral said:

*snip*

(Sorry for a bit of a late reply here.)

You want to find the <requiredExtras> line shortly after the <flags> entry and add the "EXTRA" number in it. Also make sure you have FLAG_EXTRAS_REQUIRE in your flags in case.

Example from police[1]:

<flags>FLAG_EXTRAS_REQUIRE [Etc.]</flags>
      <type>VEHICLE_TYPE_CAR</type>
      <plateType>VPT_FRONT_AND_BACK_PLATES</plateType>
      <dashboardType>VDT_GENTAXI</dashboardType>
      <vehicleClass>VC_EMERGENCY</vehicleClass>
      <wheelType>VWT_MUSCLE</wheelType>
      <trailers />
      <additionalTrailers />
      <drivers>
        <Item>
          <driverName>S_M_Y_Cop_01</driverName>
          <npcName />
        </Item>
      </drivers>
      <extraIncludes />
      <doorsWithCollisionWhenClosed />
      <driveableDoors />
      <bumpersNeedToCollideWithMap value="false" />
      <needsRopeTexture value="false" />
      <requiredExtras>EXTRA_1</requiredExtras>

While I don't know what extra it is for the Polara it's likely #1 or 2, so you'll have to go through trial and error or find the number through the vehicle components menu in something like the Simple Trainer.

If you ever have multiple lightbars on a vehicle you can also use <requiredExtras>EXTRA_1 EXTRA_2</requiredExtras> (Numbers not standing) and the game will pick one of the two to use when it's spawned.

Note that using the Required Extras method causes the game to not spawn any of the other not specified extras at random, so you'll only see the lightbar extra and nothing else during spawning I believe.

  • 9 months later...
11 minutes ago, victoriousV11 said:

anyone found yet how to have two permanent extras as desmonds FPIU used two separated Mirror lights and only on or the other seems to spawn??

I'm pretty sure he has how to fix that in the Readme.

48 minutes ago, Slendis said:

I'm pretty sure he has how to fix that in the Readme.

yeah he does but i guess the fix doesn't work as only one light either left or right spawns permanentl.  not both of them spawn simultaneously

31 minutes ago, victoriousV11 said:

yeah he does but i guess the fix doesn't work as only one light either left or right spawns permanentl.  not both of them spawn simultaneously

Well they do for me soooo

well i spoke with the author and the read me instructions was not correct/clear sooooo..... thanks for helping me, even though you didnt:thumbsup:

5 hours ago, Slendis said:

Well they do for me soooo

well i spoke with the author and the read me instructions was not correct/clear sooooo..... thanks for helping me, even though you didnt:thumbsup:

6 minutes ago, victoriousV11 said:

well i spoke with the author and the read me instructions was not correct/clear sooooo..... thanks for helping me, even though you didnt:thumbsup:

well i spoke with the author and the read me instructions was not correct/clear sooooo..... thanks for helping me, even though you didnt:thumbsup:

Hah, no problem i guess :woot:

This is a support topic.
Only reply here to offer help or assistance to w1lc0. Off-topic or "me too" replies will be removed.

Need support yourself? Make a new topic instead.

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.