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: 32ms

DB GetPage 4
Generate Html 5
SaveChanges (1) 9
Render Body 0
Render Sidebar 11