التايمر بيستوي قبل ما تضغط
function randomVehColors()
for i, car in ipairs( getElementsByType( "vehicle" ) ) do
local color = {}
color[1] = math.random(0,255)
color[2] = math.random(0,255)
color[3] = math.random(0,255)
color[4] = math.random(0,255)
setVehicleColor ( car, color[1], color[2], color[3], color[4] )
end
end
addEventHandler ( "onClientGUIClick", Button,function ()
setTimer( randomVehColors, 350, 0 )
end,false)
button = بدله بأسم الزر حقك