Revision Difference
vgui.Create#528033
<function name="Create" parent="vgui" type="libraryfunc">
<description>Creates a panel by the specified classname.
<note>Custom VGUI elements are not loaded instantly. Use <page>GM:OnGamemodeLoaded</page> to create them on startup.</note></description>
<realm>Client and Menu</realm>
<file line="19-48">lua/includes/extensions/client/panel/scriptedpanels.lua</file>⤶
<args>
<arg name="classname" type="string">Classname of the panel to create. Valid classnames are listed at: <page>VGUI Element List</page>.</arg>
<arg name="parent" type="Panel" default="nil">Parent of the created panel.</arg>
<arg name="name" type="string" default="nil">Name of the created panel.</arg>
</args>
<rets>
<ret name="" type="Panel">panel</ret>
</rets>
</function>