Garry's Mod Wiki

team.GetAllTeams

  table team.GetAllTeams()

Description

Returns the real table consisting of information on every defined team

Returns

1 table
Team info

Example

Prints all Jobs/Teams on the server. The list in printed from lowest to highest. Information about join able to the player, the score of the team and the colors.

Output:
0: Color: a = 255 b = 100 g = 255 r = 255 Joinable = false Name = Joining/Connecting Score = 0