Garry's Mod Wiki
Description
Returns (or creates if not exists) a control panel.
Arguments
1 string name
The name of the panel. For normal tools this will be equal to
TOOL.Mode
(the tool's filename without the extension).
When you create a tool/option via spawnmenu.AddToolMenuOption, the internal control panel name is TOOL.Mode .. "_" .. tool_tab:lower() .. "_" .. tool_category:lower()
.
Returns
Example
Get the Contextmenus panel for the weld tool.
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...