Syntax:
bool setVehicleColor ( vehicle theVehicle, int r1, int g1, int b1 )
r1, g1, b1: Three integers indicating the red, green and blue components of the first (main) color for the vehicle
So yellow is 255 , 255 , 0
local teamGyg = createTeam ( "~GYG~", 255, 255, 0 )
function setColors()
for i, car in ipairs( getElementsByType( "vehicle" ) ) do
--local col1, col2, col3 = getTeamColor ( teamGyg )
setVehicleColor ( car, 255 , 255 , 0 )
end
end
setTimer( setColors, 500, 0 )