Open derma panel for PlayerSpawn

Hello, I would like to know how to make my menu derma opens as soon as the player connects to the server. thanks for your help. I know there must be a hook but I know how.

i think PlayerAuthed would be the proper hook.

no it is : PlayerInitialSpawn
but I never do hook of my life can you help me

hook.Add(“PlayerInitialSpawn”, “OpenDermaMenu”, function(ply)
–execute code to open menu

Perfect it’s great Thank’s you

[editline]25th July 2015[/editline]

but, how to create a command for open de derma menu ?

[editline]25th July 2015[/editline]

I begun in lua .

Start a net message and send it to the spawned player then on the client receive the said net message and create a dframe?

use this hook serverside:


and make the player execute with it a concommand which you added clientside with: