Gamemode.ShowTeam

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameShowTeam
SyntaxGM:ShowTeam( Player Player )
DescriptionCalled when the player presses their (by default) F2 key.
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.ShowTeam]Gamemode.ShowTeam [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionShows the help dialogue.
Used onNewerServer.png
Code
function SchoolShow( ply )
	ply:ConCommand( "SchoolMe" )
end
hook.Add("ShowTeam", "School", SchoolShow)
OutputWhen player presses ShowTeam (F2 default) the command SchoolMe is ran on that player.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox