Jump to content

One Problem


#Whit3^

Recommended Posts

Sry Guys i Have an Question

I want to practice when I press that button to activate this feature

  
function randomVehColors() 
                for i, car in ipairs( getElementsByType( "vehicle" ) ) do 
                local colorecane = {} 
        colorecane[1] = math.random(0,126) 
        colorecane[2] = math.random(0,126) 
        colorecane[3] = math.random(0,126) 
        colorecane[4] = math.random(0,126) 
        setVehicleColor ( car, colorecane[1], colorecane[2], colorecane[3], colorecane[4] ) 
                outputChatBox("#00BFFF# #FFFFFFYour Lights has been saved!",255,255,255,true) 
    end 
end 
  
        setTimer( randomVehColors, 1500, 0 ) 
         
addEventHandler ( "onClientGUIClick", savelightsButton, randomVehColors) 

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...