kewiiNNN Posted November 15, 2015 Posted November 15, 2015 How to automaticly delete all cars that are abandoned in whole map for every 30 minutes?
The Don Posted November 15, 2015 Posted November 15, 2015 -- EVENT -- onVehicleExplode setTimer destroyElement آن يكون فكر المرء مختلآ , خيرآ من آن يكون فكره محتلآ ! my nick name in the game : =x=|DoN|=x= or 7eJAzZy- ( ͡° ͜ʖ ͡°) http://community.multitheftauto.com/ind ... &id=337164 my profile
kewiiNNN Posted November 16, 2015 Author Posted November 16, 2015 DestroyElement only makes 1 car destroy.. and i also have a script car dont blow up.
Noki Posted November 16, 2015 Posted November 16, 2015 Use a for loop. setTimer( function () for _, vehicle in pairs(getElementsByType("vehicle") do if (#getVehicleOccupants(vehicle) == 0) then destroyVehicle(vehicle) end end end, 1800000, 1 ) My indentation is awful, sorry.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now