rendered paste bodylocal str = [["resource/ui/vgui_mailbox.res"{ "vgui_frame" { "ControlName" "Frame" "fieldName" "vgui_frame" "xpos" "40" "ypos" "40" "zpos" "290" "wide" "]] ScrW() - 160 [[" "tall" "160" "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" "settitlebarvisible" "1" "title" "Mailbox" "sizable" "0" } "ClickMe" { "ControlName" "Button" "fieldName" "ClickMe" "xpos" "285" "ypos" "136" "zpos" "290" "wide" "100" "tall" "24" "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" "labelText" "Click Me!" "textAlignment" "west" "dulltext" "0" "brighttext" "0" "font" "Default" "wrap" "0" "Command" "!" "Default" "0" }}]]local Window = nil local function MailboxWindow() if ( Window ) then Window:SetVisible( true ) return endWindow = vgui.Create( "Frame" )Window:SetName( "vgui_frame" )local button = vgui.Create( "Button", Window, "ClickMe" )button:SetActionFunction( ClickHere )Window:LoadControlsFromString( str )Window:SetKeyBoardInputEnabled( true )Window:SetMouseInputEnabled( true )Window:SetPos( 80, 80 )Window:SetVisible( true )endconcommand.Add( "test_vgui", MailboxWindow )local function ClickHere() // Add click here code end