Garry's Mod Wiki

vgui.Create

vgui.Create

  Panel vgui.Create( string classname, Panel parent = nil, string name = "nil" )

Description

Creates a panel by the specified classname.

Custom VGUI elements are not loaded instantly. Use GM:OnGamemodeLoaded to create them on startup.

Arguments

1 string classname
Classname of the panel to create. Valid classnames are listed at: VGUI Element List.
2 Panel parent = nil
Parent of the created panel.
3 string name = "nil"
Name of the created panel.

Returns

1 Panel
panel

Special Pages


Wikis

?

Render Time: 51ms

DB GetPage 29
Generate Html 7
SaveChanges (1) 6
Render Body 0
Render Sidebar 7