Hello, I’m unsure as to what I’m doing wrong, I’m doing a simple derma test, I get the error message
dermatest.lua:3: attempt to index global ‘vgui’ (a nil value) every time I attempt to bring the derma panel up.
I looked up a solution and people said you have to include it in cl_init.lua, and init.lua. I’ve included it correctly in the sandbox gamemode, and still same error. Am I including it in the wrong place? I just figured I’d need to include it in the sandbox gamemode’s cl_init since that’s the gamemode I’m testing on. If somebody could tell me what I’m doing wrong, it would be much appreciated. Thanks!
local frame1 = vgui.Create( “DFrame” )
frame1:SetPos(100,100) frame1:SetSize(200,200) frame1:SetTitle("Test") frame1:MakePopup()