EnumerateVehicles¶
EnumerateVehicles()
Example¶
ESX.SetInterval(100, function() -- 100ms interval (0.1 seconds)
for vehicle in EnumerateVehicles() do -- Vehicles search
if GetEntityHealth(vehicle) == 0 then
DeleteEntity(vehicle) -- The vehicle is destroyed
end
end
end)