I was wondering what I could do to reduce NPC traffic. For no reason AI’s go crazy and start ramming other cars, mass spawn etc. I would rather not remove it but I would like to reduce it
1 Like
Theres a thing called traffic density in settings, you can use a native to set it for everyone.
Can you dumb that down for me… .-.
I quickly made a script using the native functions that cover those settings for you, which also allows you to lower the pedestrian density.
-- From 0.0 to 1.0:
trafficDensity = 0.3
pedDensity = 0.3
Citizen.CreateThread(function()
while true do
SetVehicleDensityMultiplierThisFrame(trafficDensity)
SetPedDensityMultiplierThisFrame(pedDensity)
SetRandomVehicleDensityMultiplierThisFrame(trafficDensity)
SetParkedVehicleDensityMultiplierThisFrame(trafficDensity)
SetScenarioPedDensityMultiplierThisFrame(pedDensity, pedDensity)
Citizen.Wait(0)
end
end)
Hope it helps 
3 Likes
encontro algo para reducir el trafico amigo un saludo espero su repuesta ,gracias
English please. You can find how to do that above, in my comment.
CSCOTT
8
Where is this supposed to go. Need help real quick