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

Page Links


Special Pages


Wikis

?

Render Time: 68ms

DB GetPage 42
Generate Html 2
SaveChanges (1) 15
Render Body 0
Render Sidebar 6