Jump to content
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.

[HOW TO] Make added police cars work with LSPDFR (traffic stops etc.)


Recommended Posts

Hello!

First off: I'm sorry if this "fix" is already known... I searched here and via Google a few times and found no solution for this.

Almost everybody who wanted to play LSPDFR with a added car probably already ran into this issue. You added a cool new police car, wanted to play LSPDFR with it but couldn't, for example, stop traffic.

While replacing a few cars yesterday I had the idea that solved it for me. The vehicle flags in the vehicles.meta are the important part. How to fix it for the car you added? Here you go:

STEP BY STEP INSTRUCTION:

1: First off, copy this line of code. It's the vehicles.meta "<flags>" line of the police cruiser:

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

2: Open the vehicles.meta that includes the code of your added vehicle.

3: Go to the vehicles code and replace the "<flags>" line with the one above.

4: Copy this line of code. It's the vehicles.meta "<vehicleClass>" line of the police cruiser:

<vehicleClass>VC_EMERGENCY</vehicleClass>

5: Go back to the vehicle.meta of your added car and replace the "<vehicleClass>" line with the one above.

6: Start your game and try it! :)

--------------------------------------------------------------------

This is what fixed it for me. I haven't tried much as of now, but I can already confirm that you can stop cars with your added police cars from now on! I don't know about the possibilitys with plugins like VehicleSearch. It depends on how it works. If it checks the VehicleClass (VC_EMERGENCY) or the Flags (FLAG_LAW_ENFORCEMENT) of the specific car, then it should work.

Sadly we still can't spawn it directly in the LSPDFR menu. So you still need a trainer or the RPH console to spawn your car.

Anyway, I hope I could fix this issue for you. But I take now responsibility for possible problems accouring after the changes. It works fine for me, but if you got any problems please just post them here. Maybe I can find some more things or lines to improve compatibility of added cars for LSPDFR.

PS: If you are german speaking, I'd appreciate if you would check out my YouTube channel: https://www.youtube.com/user/GermanCommentGamer

Thanks :)

Link to comment
Share on other sites



×
×
  • Create New...