Gamemode.OnContextMenuOpen
From GMod Wiki
Revision as of 01:19, 23 October 2009 by Crazy Quebecer (Talk | contribs)
Event Hook | |
Hook Name | OnContextMenuOpen |
Syntax | GM:OnContextMenuOpen( ) |
Description | Called when a player opens the Context Menu |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.OnContextMenuOpen]Gamemode.OnContextMenuOpen [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Disable the context menu. |
---|---|
Used on | |
Code | function GM:OnContextMenuOpen( ) end |
Output | N/A |
Description | Open your own context menu. |
---|---|
Used on | |
Code | function GM:OnContextMenuOpen( ) my_other_context_menu:SetVisible( true ) print( "Context menu opened!!" ) end |
Output | N/A |