Garry's Mod Wiki

Frame

Description

We advise against using this. It may be changed or removed in a future update. You should use DFrame instead.

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()