Gamemode.OnContextMenuOpen

From GMod Wiki

Revision as of 01:19, 23 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameOnContextMenuOpen
SyntaxGM:OnContextMenuOpen( )
DescriptionCalled when a player opens the Context Menu
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.OnContextMenuOpen]Gamemode.OnContextMenuOpen [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDisable the context menu.
Used onNewerClient.png
Code
 
function GM:OnContextMenuOpen( )
end
OutputN/A


DescriptionOpen your own context menu.
Used onNewerClient.png
Code
 
function GM:OnContextMenuOpen( )
     my_other_context_menu:SetVisible( true )
     print( "Context menu opened!!" )
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox