Less traffic ingame?

How do i get less traffic in my server? I’m not asking to remove or anything. Just a little less. Thanks - Erik.

DensityMultiplier = 0.15
Citizen.CreateThread(function()
	while true do
	    Citizen.Wait(0)
	    SetVehicleDensityMultiplierThisFrame(DensityMultiplier)
	    SetPedDensityMultiplierThisFrame(DensityMultiplier)
	    SetRandomVehicleDensityMultiplierThisFrame(DensityMultiplier)
	    SetParkedVehicleDensityMultiplierThisFrame(DensityMultiplier)
	    SetScenarioPedDensityMultiplierThisFrame(DensityMultiplier, DensityMultiplier)
	end
end)

Thank @nopixel

And i just put this in my gameconfig right?

Anywhere client side

Okay thank you so much my friend!

I tried putting it in offline http://prntscr.com/i30vir i do not see any difference… :confused:

http://prntscr.com/i30ypq I tried disabling the whole traffic. Not working.

It’s working fine on my server. Stop the server, add it to a client side script in a server resource. Start the server.

I said i tried it in my gameconfig on offline. xD

You should not be running a server. Since when does a client side lua script belong in the config? I gave you the code, told you where to put it and you still didn’t listen.

im new to hosting…

https://wiki.fivem.net/wiki/Main_Page