- Control the density of traffic, pedestrians, parked cars, random vehicles, and scenario peds.
- Disable entire scenario types (e.g. police cars, races, etc.).
- Suppress unwanted world spawns (random cops, dispatch services, boats, trains, garbage trucks).
- Admin-only commands to toggle and adjust density multipliers.
- Copy this folder to your server resources as
briggzeee-npc-density. - Add to your
server.cfg:ensure briggzeee-npc-density
- Restart your server.
All settings are in config.lua.
Config.Enabled = true -- master on/off switchConfig.Density = {
Vehicles = 0.20, -- cars driving on roads
Peds = 0.30, -- walking pedestrians
RandomVehicles = 0.15, -- random driving spawns
ParkedVehicles = 0.20, -- parked cars
ScenarioPeds = 0.25, -- scenario peds (buskers, workers, etc.)
}Values range from 0.0 (none) to 1.0 (default). Increase above 1.0 for extra busy streets (not recommended).
Config.DisableScenarioTypes = {
'WORLD_VEHICLE_POLICE_CAR',
'WORLD_VEHICLE_STREETRACE',
}Remove or add scenario strings to block entire categories of NPC spawns.
Config.Suppress = {
RandomCops = true, -- no random police
CopDispatch = true, -- disables police/EMS/fire dispatch
RandomBoats = true, -- no random boats
RandomTrains = true, -- no trains
GarbageTrucks= true, -- no garbage trucks
VehicleRewards = true, -- no free weapons from police cars
}Config.Commands = {
Toggle = 'npcs_toggle', -- /npcs_toggle to enable/disable
Level = 'npcs_level', -- /npcs_level 0.0-1.0 to adjust density quickly
}Config.AdminOnly = true -- restrict commands to admins onlyIf using QBCore: checks for admin or god permission levels.
If standalone: grant ACE permission command.npcs in your server.cfg:
add_ace group.admin command.npcs allow/npcs_toggleβ Toggle the script on/off locally./npcs_level 0.0-1.0β Adjust all density multipliers to the same value.
- Density natives must be called every frame. This script handles that for you.
- Some NPCs (like mission-specific spawns) are unaffected.
- Adjust values gradually to avoid an empty or overly crowded map.
Made by BriggZeee