Gamemode.ShowSpare1

From GMod Wiki

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