Hi I’m trying to figure out how to stop the police cars ( npc’s) from driving around the city, and also how to remove all the stock gta5 police cars from parking outside the police stations. I have tried to get rid of the NPC’s from standing outside/ walking casually around town by using [Release] removeAIcops (this removes all AI cops) but it still doesn’t work.
1 Like
if your using zap hosting go to your configs then down to data/resources/trafficadjuster/config.lua you can enable/disable dispatch in there
I THINK THIS IS THE SOLUTION TO YOUR PROBLEM
MAYBE THIS TOO.
trafficnpc-c.lua
Citizen.CreateThread(function()
while true do
-- These natives has to be called every frame.
SetVehicleDensityMultiplierThisFrame(0.3)
SetPedDensityMultiplierThisFrame(0.4)
SetRandomVehicleDensityMultiplierThisFrame(0.1)
SetParkedVehicleDensityMultiplierThisFrame(0.0)
SetScenarioPedDensityMultiplierThisFrame(0.1, 0.1)
-- These natives do not have to be called everyframe.
SetGarbageTrucks(0)
SetRandomBoats(0)
RemoveAllPickupsOfType(0xDF711959) -- carbine rifle
RemoveAllPickupsOfType(0xF9AFB48F) -- pistol
RemoveAllPickupsOfType(0xA9355DCD) -- pumpshotgun
Citizen.Wait(0)
end
end)
__resource.lua
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
description "Baja la Dencidad de carros y npc"
client_scripts {
"trafficnpc-c.lua"
}
start trafficnpc
.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.