djharbi2 Posted July 31, 2016 Share Posted July 31, 2016 -- 1 seg = 1000 local tiempoparadesaparecer = 5000 -- Function function desaparecer() setTimer(destroyElement, tiempoparadesaparecer, 1, source) end -- Event addEventHandler("onVehicleExplode", getRootElement(), desaparecer) 5 Warning Link to comment
Walid Posted July 31, 2016 Share Posted July 31, 2016 Check if the vehicle exist then destroy it: if isElement(source) then destroyElement(source) end 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