So here is an example menu
local PerpSpawnFrame = vgui.Create(“DFrame”)
What would I need to do so that the button I bound it to makes the menu only appear while the button is held down?
I thought it was:
PerpSpawnFrame:SetVisible( true )
PerpSpawnFrame:SetVisivle( false )
hook.Add(“Initialize”, “menu”, “PerpSpawnFrame”)
But that doesn’t seem to work, can anyone help?