Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2. while true do
  3.  
  4. -- local ped = PlayerPedId()
  5. -- local pos = GetEntityCoords(ped)
  6. -- local vehicleHandle = GetClosestVehicle(pos.x, pos.y, pos.z, 100.0, 0, 70)
  7. -- local petrol = GetVehiclePetrolTankHealth(vehicleHandle)
  8. -- if vehicleHandle ~= nil then
  9. -- Citizen.Trace("----- Debug : " .. vehicleHandle .. " Petrol tank health is " .. petrol .. "/1000 health \n")
  10. -- end
  11.  
  12. -- this is to remove all locals so you can test top speed etc..
  13.  
  14. local density = 0.0
  15. --0.0 is no vehicles
  16. --1.0 is max vehicles
  17. SetPedDensityMultiplierThisFrame(density)
  18. SetScenarioPedDensityMultiplierThisFrame(density, density)
  19. SetVehicleDensityMultiplierThisFrame(density)
  20. SetRandomVehicleDensityMultiplierThisFrame(density)
  21. SetParkedVehicleDensityMultiplierThisFrame(density)
  22. Citizen.Wait(0)
  23. end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement