Garry's Mod Wiki

SANDBOX:ContextMenuOpened

  SANDBOX:ContextMenuOpened()

Description

Called when the context menu is supposedly opened.

This is simply an alias of GM:OnContextMenuOpen but will not be called if SANDBOX:ContextMenuOpen prevents the context menu from opening.

This hook will be called even if the context menu doesn't actually exist, i.e. SANDBOX:ContextMenuEnabled blocked its creation.