Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...