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