Ok then,
is this right?
function createTeamsOnStart ()
local teamName,col1,col2,col3
teamGyg = createTeam ( "~GYG~", 255, 255, 0 )
function setColors()
for i, car in ipairs( getElementsByType( "vehicle" ) ) do
local col1,col2,col3
col1, col2, col3 = getTeamColor ( teamName )
setVehicleColor ( car, 255, 255, 0 , 0 )
end
end
setTimer( setColors, 500, 0 )