Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Citizen.CreateThread(function()
- while true do
- -- local ped = PlayerPedId()
- -- local pos = GetEntityCoords(ped)
- -- local vehicleHandle = GetClosestVehicle(pos.x, pos.y, pos.z, 100.0, 0, 70)
- -- local petrol = GetVehiclePetrolTankHealth(vehicleHandle)
- -- if vehicleHandle ~= nil then
- -- Citizen.Trace("----- Debug : " .. vehicleHandle .. " Petrol tank health is " .. petrol .. "/1000 health \n")
- -- end
- -- this is to remove all locals so you can test top speed etc..
- local density = 0.0
- --0.0 is no vehicles
- --1.0 is max vehicles
- SetPedDensityMultiplierThisFrame(density)
- SetScenarioPedDensityMultiplierThisFrame(density, density)
- SetVehicleDensityMultiplierThisFrame(density)
- SetRandomVehicleDensityMultiplierThisFrame(density)
- SetParkedVehicleDensityMultiplierThisFrame(density)
- Citizen.Wait(0)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement