zDxvilZ Posted April 20, 2020 Posted April 20, 2020 Hey guys I'm looking for a delete all vehicle command, where all vehicle on the server delete. I know how I delete once car but not all. thanks
MrPancakers Posted April 20, 2020 Posted April 20, 2020 Loop through the vehicles pool and delete one by one https://wiki.rage.mp/index.php?title=Pool::forEach
sha512boo Posted April 24, 2020 Posted April 24, 2020 mp.events.addCommand("deleteAllVehicles", (player) => { mp.vehicles.forEach((vehicle) => { vehicle.destroy(); }) })
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