Garry's Mod Wiki




Used by the context menu in sandbox.


Derives methods, etc not listed on this page from DForm.


ControlPanel:AddControl( string type, table controlinfo )
We advise against using this. It may be changed or removed in a future update. It is recommended to use DForm's members instead. Adds a control to the control panel.
ControlPanel:AddPanel( Panel panel )
Adds an item by calling DForm:AddItem.
ControlPanel:ControlValues( table data )
Sets control values of the control panel.
ControlPanel:FillViaFunction( function func )
Calls the given function with this panel as the only argument. Used by the spawnmenu to populate the control panel.
ControlPanel ControlPanel:GetEmbeddedPanel()
Returns this control panel.
MatSelect ControlPanel:MatSelect( string convar, table options = nil, boolean autostretch = nil, number width = nil, number height = nil )
Creates a MatSelect panel and adds it as an item.

Special Pages



Render Time: 21ms

DB GetPage 2
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 9