Garry's Mod Wiki

team.BestAutoJoinTeam

  number team.BestAutoJoinTeam()

Description

Returns the team index of the team with the least players. Falls back to TEAM_UNASSIGNED

Returns

1 number
Team index