controlpanel.Get

From GMod Wiki

Jump to: navigation, search
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: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Controlpanel.Get]Controlpanel.Get [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionFetches the materials panel
Used onNewerClient.png
Code
local MatCP = controlpanel.Get("material")
OutputN/A


Additional Notes


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox