G.GetControlPanel
From GMod Wiki
Function | |
Syntax |
GetControlPanel( String controlspanel_name ) Where is this used? |
Description: | |
Fetches a ControlsPanel object by a given name or returns nil. This function is deprecated because it is an alias of controlpanel.Get! | |
Returns: | Panel ControlsPanel |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.GetControlPanel]G.GetControlPanel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Fetches the materials panel |
---|---|
Used on | |
Code | local MatCP = GetControlPanel("material") |
Output | N/A |
Additional Notes
- Set it to the stools file name.
- The case isn't important. "Material" returns the same as "material".