- Documentation
- Server functions
- getTeamColor
Function
getTeamColor
Returns the team colour.
Syntax
int getTeamColor(team team)Arguments
teamteam- The team.
Returns
Three numbers r, g, b, or false.
Example
local team = getPlayerTeam(player)
if team then
local r, g, b = getTeamColor(team)
outputChatBox("Witaj w drużynie " .. getTeamName(team), player, r, g, b)
end