Garry's Mod Wiki

vgui.CreateX

  Panel vgui.CreateX( string class, Panel parent = nil, string name = nil )

Description

This is used internally - although you're able to use it you probably shouldn't.

Creates an engine panel.

Arguments

1 string class
Class of the panel to create
2 Panel parent = nil
If specified, parents created panel to given one
3 string name = nil
Name of the created panel

Returns

1 Panel
Created panel