Garry's Mod Wiki

team.GetName

  string team.GetName( number teamIndex )

Description

Returns the name of the team.

Arguments

1 number teamIndex
The team index.

Returns

1 string
The team name. If the team is not defined, returns an empty string.

Example

Returns the teams name as a string.

print(team.GetName(Entity(1):Team()))