Gamemode.ContextScreenClick
From GMod Wiki
| Event Hook | |
| Hook Name | ContextScreenClick |
| Syntax | GM:ContextScreenClick( Vector aimvec, Integer mousecode, Boolean pressed, Player ply ) |
| Description | Called when player clicks with the context menu open. |
| Returns | Nil |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.ContextScreenClick]Gamemode.ContextScreenClick [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- This hook is called outside of the sandbox gamemode and it's STOOL context menus.
- To toggle the mouse and use this hook use gui.EnableScreenClicker.