I wish know if there is a script who auto erase the npc car after they leave them, for example an npc park a car in the central garage, after this npc leave the car, this script goes to erase that vehicle, it is possible?
I already saw an Italian server who do this
Ok so i’m not really sure about which line would do that but i hope this help. This is the code i’m running on my server to remove all vehicles.
SetVehicleDensityMultiplierThisFrame(0.0)
SetPedDensityMultiplierThisFrame(0.0)
SetParkedVehicleDensityMultiplierThisFrame(0.0)
SetRandomVehicleDensityMultiplierThisFrame(0.0)
SetScenarioPedDensityMultiplierThisFrame(0.0, 0.0)
SetGarbageTrucks(false)
SetRandomBoats(false)
SetCreateRandomCops(false)
SetCreateRandomCopsNotOnScenarios(false)
SetCreateRandomCopsOnScenarios(false)
local x,y,z = table.unpack(GetEntityCoords(PlayerPedId()))
ClearAreaOfVehicles(x, y, z, 1000, false, false, false, false, false)
RemoveVehiclesFromGeneratorsInArea(x - 500.0, y - 500.0, z - 500.0, x + 500.0, y + 500.0, z + 500.0);
this help ty
you can use TrafficAdjuster GitHub - Blumlaut/TrafficAdjuster