Garry's Mod Wiki

Frame

Description

A window that in which you can place just about every other component and even another frame.

Parent

Derives methods, etc not listed on this page from Panel.

Example

Creates a simple frame that's centered.

local frame = vgui.Create("Frame") frame:SetSize( ScrW()*0.25, ScrH()*0.25 ) frame:Center() frame:SetVisible( true ) frame:MakePopup()