Gamemode.ShowSpare2

From GMod Wiki

Revision as of 15:21, 17 February 2011 by BlackVoid (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameShowSpare2
SyntaxGM:ShowSpare2( Player Player )
DescriptionCalled when the player presses their (by default) F4 key.
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.ShowSpare2]Gamemode.ShowSpare2 [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("ShowSpare2", "School", SchoolShow)
OutputN/A


See Also


Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox