Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 47ms

DB GetPage 5
Generate Html 11
SaveChanges (1) 12
Render Body 0
Render Sidebar 15