Jump to content

[help] Rainbow vehicle problem


skaruharu

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...