Garry's Mod Wiki

Garry's Mod Wiki

  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"} )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...