Open a PANEL

So, I’ve been trying out PANEL = {} and PANE:Init() etc.

So far it’s been going good. But I’ve been trying to figure out how to open the GUI?

Any help? Thanks!

I have that. But how would I open it in-game so I could use it?

Without any code I can only tell you http://wiki.garrysmod.com/page/Panel/SetVisible

Looks like someone didn’t bother searching on the wiki. There’s a tutorial for the exact thing you’re looking for.

Make sure it’s clientside only, do something like



if CLIENT then

//Just put the code here. This is just an example.
local FRAME = vgui.Create( "DFrame" )
FRAME:SetSize(1000,600)
FRAME:Center()

end


If you don’t know how to run the panel, just do something like a network string (you don’t have to, I just often do this, it makes it easy)