Derma Panel as Usermessage hook?

Alright so I’ve been trying to get this menu to popup at the joining of a game, it continually tells me that the usermessage is unhandled though.

[lua]function begin_panel()

local NewOldPanel = vgui.Create( "DFrame" )
NewOldPanel:SetPos( ScrW()/2, ScrH()/2 ) -- Put it in the middle of the screen
NewOldPanel:SetSize( ScrW()-20, ScrH()-20 ) -- Make it 20 pixels smaller than the full screen
NewOldPanel:SetTitle( "New or Old Character" ) -- Tell them what it is.
NewOldPanel:SetVisible( true ) --Allow them to see this panel
NewOldPanel:SetDraggable( false ) -- Don't let them move the panel, this is important
NewOldPanel:ShowCloseButton( true ) -- Don't let them close this prematurely
NewOldPanel:MakePopup() -- Creates teh frame


usermessage.Hook( “BeginSpawnMenu”, begin_panel )[/lua]

[lua]function GM:PlayerInitialSpawn( ply ) --When the player first joins make him choose either a new character or a predetermined character
umsg.Start( “BeginSpawnMenu”, ply )

Check your console for clientside errors

[editline]19th March 2011[/editline]

and are you sure cl_begin.lua is included in cl_init.lua

As I said earlier… “Warning: Unhandled usermessage ‘BeginSpawnMenu’”

That is the only error that it gives me.

Post your cl_init.lua

[lua]include( ‘shared.lua’ ) – This tells the client side to load the shared.lua[/lua]

That is all.

include( ‘cl_begin.lua’ )

place that under it

Ah, of course I would screw up that easily eh? Thanks for the help man, I always overlook the simple things. XD