Garry's Mod Wiki

ControlPanel:ToolPresets

  Panel ControlPanel:ToolPresets( string group, table cvarList )

Description

Creates a ControlPresets panel and adds it as an item.

Arguments

1 string group
The preset group. Must be unique.
2 table cvarList
A table of convar names as keys and their defaults as the values. Typically the output of Tool:BuildConVarList.

Returns

1 Panel
The created ControlPresets panel.