Garry's Mod Wiki
Description
Called when the player opens a context menu by right clicking one of the spawnmenu icons. Either ContentIcon or SpawnIcon.
This hook can be used to add new custom menu options to the context menu.
Arguments
2 Panel icon
The ContentIcon or SpawnIcon that was right clicked. It will be a
SpawnIcon for model content type, and a ContentIcon for all others.3 string contentType
The content type, such as:
weaponentityvehiclenpcmodeltoolpostprocess
Addon related icons may have different types.
Example
Adds a "copy name" option to NPC spawn icons.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...