Gamemode.ShowHelp

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameShowHelp
SyntaxGM:ShowHelp( Player )
DescriptionCalled when the player presses ShowHelp (F1 by default).
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.ShowHelp]Gamemode.ShowHelp [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("ShowHelp", "School", SchoolShow)
 
OutputWhen player presses ShowHelp (F1 default) then command SchoolMe is run on that player.


See Also


Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox