skaruharu Posted January 30, 2017 Share Posted January 30, 2017 Hello! I created a vehicle and it works perfect when i enter it BUT i want the rainbow to stop when the vehicle respawn/destroys.. I have no idea how to make it. myBurrito = createVehicle(482, 2474.63794, -1654.04663, 13.33011, 0, 0, -270) function rainbowburrito (player) local myBurrito = getPlayerOccupiedVehicle(player) setTimer ( function () local r, g, b = math.random(255),math.random(255),math.random(255) setVehicleColor(myBurrito, r, g, b) end, 200, 0) end addEventHandler("onVehicleEnter", root, rainbowburrito) Link to comment
Dimos7 Posted January 30, 2017 Share Posted January 30, 2017 (edited) killTimer onVehicleExplode Edited January 30, 2017 by Dimos7 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