Derma Help

I’m trying to make a derma menu, but I’m getting errors. The error is BackGround a nil value, even though I clearly define what it is.



function RPName()

local BackGround = vgui.Create("Dframe")
BackGround:SetSize(500,500)
BackGround:Center()
BackGround:SetVisible(true)
BackGround:MakePopup()

end

concommand.Add( "rp_menu", RPName )

Is this in your client side code? Is this all your code?

Edit: nvm DFrame*

DFrame, not Dframe

Tahnk u lvoe you