Garry's Mod Wiki

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

1 Panel
The ControlPanel panel.

Example

Get the Contextmenus panel for the weld tool.

local ControlPanel = controlpanel.Get( "Weld" )

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...