Garry's Mod Wiki

Revision Difference

controlpanel.Get#514392

<function name="Get" parent="controlpanel" type="libraryfunc">⤶ <description>Returns (or creates if not exists) a controlpanel.</description>⤶ <realm>Client</realm>⤶ <file line="6">lua/includes/modules/constraint.lua</file>⤶ <args>⤶ <arg name="name" type="string">The name of the panel.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="Panel">ControlPanel</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Get the Contextmenus panel for the weld tool.</description>⤶ <code>local ControlPanel = controlpanel.Get( "Weld" )</code>⤶ ⤶ </example>