Script created to work with the citizenfx framework.
With this script you can modify the amount of entities spawning in your server. Reducing lagging significantly.
Clone this repository in your [script] folder.
Add start npc_control in your server.cfg file. Doesn't matter the placement order
Restart your local/vps server.
To modify ped density, change the cfg.density value for peds or vehicles in cfg.config. The "0" value meaning it won't spawn at all.
You can also set a spawning restriction for specific entities.
There is some pre-configured peds, if you want to add more, write the ped model name in cfg/npcs.lua