Derma Code Won't Work


-- Serverside code
util.AddNetworkString( "OpenMenuUniqueName" )

function MakeClientOpenMenu( Pl )

net.Start( "OpenMenuUniqueName" )
net.Send( Pl )

end



-- Clientside code

net.Receive( "OpenMenuUniqueName", function()

local LoseScreen = vgui.Create( "DFrame" )
LoseScreen:SetPos( 100, 100 )
LoseScreen:SetSize( 450, 450 )
LoseScreen:SetTitle( "You Have Lost..." )
LoseScreen:SetVisible( true )
LoseScreen:ShowCloseButton(false)
LoseScreen:SetDraggable( true )
LoseScreen:SetDeleteOnClose( false )
LoseScreen:Show()
end)


Whenever I run MakeClientOpenMenu() or I run it in a hook I don’t see the menu… does anyone know why?

Might be instead of LoseScreen:Show() it may be LoseScreen:MakePopUp(),try it.