Garry's Mod Wiki

team.SetClass

  team.SetClass( number index, any classes )

Description

Sets valid classes for use by a team. Classes can be created using player_manager.RegisterClass

Arguments

1 number index
Index of the team
2 any classes
A class ID or table of class IDs

Example

Allows TEAM_RED to access the "Soldier" class

team.SetClass( TEAM_RED, {"Soldier"} )