ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getTeamColor

Function

getTeamColor

ServerTeamsIdentical to MTA:SA

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

See also