Garry's Mod Wiki

team.SetUp

  team.SetUp( number teamIndex, string teamName, table teamColor, boolean isJoinable = true )

Description

Creates a new team. See GM:CreateTeams for the hook to call this in.

Arguments

1 number teamIndex
The team index.
2 string teamName
The team name.
3 table teamColor
The team color. Uses the Color.
4 boolean isJoinable = true
Whether the team is joinable or not.

Example

Create team 2 with name Mingebags and color red

team.SetUp(2, "Mingebags", Color(255, 0, 0))