spawnmenu.AddToolMenuOption
From GMod Wiki
Function | |
Syntax |
spawnmenu.AddToolMenuOption( String tab, String category, String itemname, String text, String command, String controls, Function cpanelfunction, Table button ) Where is this used? |
Description: | |
Creates a custom Menu in the spawnmenu. | |
Returns: | nil |
Part of Library: | spawnmenu |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Spawnmenu.AddToolMenuOption]Spawnmenu.AddToolMenuOption [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Only seems to work when called in the PopulateToolMenu hook.
- The input button adds a button like in the PostProcessing tab. It has to be a table like {SwitchConVar="pp_bloom"}
- This will pass a Panel to the cpanelfunction.