Player/Team

From Garry's Mod
Revision as of 18:42, 24 April 2019 by Pilot2chasse (Talk | contribs)
Jump to: navigation, search
 Player:Team( )

Contents

Description

Returns the player's team ID.

Returns 0 clientside when the game is not fully loaded.

Returns

number

The player's team's index number, as in the TEAM_ Enums or a custom team defined in team.SetUp.

For DarkRP: Your first job in your jobs.lua is the index number 1 !

Examples

Example

Prints the name of the player's team

print(team.GetName( Entity( 1 ):Team() ) )

Output:

Something like "Unassigned" in console.
Personal tools
Navigation