[lua]
//Warning: vgui.Create failed to create the VGUI component (DFrame)
local c = vgui.Create('DFrame')
c:SetSize(500,500)
c:Center()
c:MakePopup()
[/lua]
Yes it is on the client otherwise it would error with vgui being nil.
Yes it is AddCSLuaFile'd and included even though I'm in singleplayer.
Any element I try to create fails.
snip, I was wrong
You're trying to create the element too early. Chucking it in an Initialize hook should work nicely.
Sorry, you need to Log In to post a reply to this thread.