xSilvermanx / traffic-changer

Code-snippet designed as an add-on to PD5M

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

traffic-changer

Code-snippet designed as an add-on to PD5M by xSilvermanx. This resource changes the police-vehicles that spawn all over the map to the correct vehicles (Highway: CHP, City: LSPD, County: BCSO). It does so by checking for every vehicle if it is a police vehicle. If yes, it respawns them and applies a neon-light at the front, which prevents it from being respawned. This is an extremely messy way to approach the problem but it works for the most part.

Shoutout to IllidanS4 for his Entityiter, which is used to iterate over every car.

Only use this together with the following mods:

Installation

  • download the latest release and move the folder into the resource/ directory.
  • edit server.cfg to include:
ensure traffic-changer

About

Code-snippet designed as an add-on to PD5M

License:GNU General Public License v3.0


Languages

Language:Lua 100.0%