spawnmenu.AddContext

From GMod Wiki

Jump to: navigation, search
Function
Syntax spawnmenu.AddContext( String tab, String unique_name, String menu_title, String tooltip )
Where is this used?
Description:
Adds an entry to any right hand tab of the spawn menu.
Returns: nil
Part of Library: spawnmenu
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Spawnmenu.AddContext]Spawnmenu.AddContext [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis is a basic usage example.
Used onNewerClient.png
Code
 
-- Add an entry to the "Post Processing" tab
spawnmenu.AddContext("PostProcessing", "MyUniqueName", "This is a menu entry!", "This is a tooltip!")
-- You don't have to specify a tooltip
spawnmenu.AddContext("Main", "AnotherUniqueName", "The start of an STOOL!", "")
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox