Gamemode.GetTeamNumColor

From GMod Wiki

Revision as of 10:10, 23 October 2009 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameGetTeamColor
SyntaxGM:GetTeamColor( Integer teamid )
DescriptionCalled when the gamemode draws the name of the player you're looking at.
ReturnsColor
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.GetTeamNumColor]Gamemode.GetTeamNumColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionHow it is defined in the base gamemode
Used onNewerClient.png
Code
function GM:GetTeamNumColor( num )
 
	return team.GetColor( num )
 
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox