manuelhimmler Posted December 10, 2009 Share Posted December 10, 2009 Hi Community! I have scripted that the vehicles get removed by the script if they exploded destroyElement(vehicle), but the problem is, the vehicles are not removing everytime, I don't what to do, is this a MTA bug or is there a better solution to delete exploded vehicles without this problem. Link to comment
50p Posted December 10, 2009 Share Posted December 10, 2009 There would be if https://wiki.multitheftauto.com/wiki/Set ... spawnDelay worked. If it works, then, well, you've got what you wanted. Link to comment
manuelhimmler Posted December 10, 2009 Author Share Posted December 10, 2009 But I want to delete the car, not respawn it. Link to comment
50p Posted December 10, 2009 Share Posted December 10, 2009 Then no, if you're using a timer in onVehicleExplode. Link to comment
manuelhimmler Posted December 11, 2009 Author Share Posted December 11, 2009 Could thr problem be that i create the vehicle with the admin panel but want to destroy it in my own script? Link to comment
50p Posted December 11, 2009 Share Posted December 11, 2009 Depends how your script works. Show us your script that destroys the vehicles and we'll tell you then. Link to comment
manuelhimmler Posted December 12, 2009 Author Share Posted December 12, 2009 addEventHandler ( "onVehicleExplode", getRootElement(), function() setTimer( destroyElement,5000,1,source) end ) Link to comment
50p Posted December 12, 2009 Share Posted December 12, 2009 This should work with all vehicles even with those created with admin panel. I've noticed it doesn't always destroy vehicles. Link to comment
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