Gamemode.ShowSpare1

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 NameShowSpare1
SyntaxGM:ShowSpare1( Player )
DescriptionCalled when the player presses ShowSpare1 (F3 by default).
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.ShowSpare1]Gamemode.ShowSpare1 [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("ShowSpare1", "School", SchoolShow)
OutputWhen player presses ShowSpare (F3 default) then command SchoolMe is ran on that player.


See Also


Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox