SANDBOX:SpawnmenuIconMenuOpen
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.
Garry's Mod
Rust
Steamworks
Wiki Help