From Garry's Mod
Revision as of 18:43, 24 April 2019 by Pilot2chasse
Returns the player's team ID.
Returns 0 clientside when the game is not fully loaded. For DarkRP: Your first job in your jobs.lua is the index number 1
Prints the name of the player's team
print(team.GetName( Entity( 1 ):Team() ) )
Something like "Unassigned" in console.