Derma Popup on Join

Greetings all, Just wondering how i would go abouts making a derma panel apear when a player joins the server.
Thanks.

Use the PlayerInitialSpawn hook, and SendLua or usermessages to call the derma function. I think that would work.

[lua]
function GM:PlayerInitialSpawn( ply ) --When the player first spawns

local function UM() – Our LOCALISED function
umsg.Start( “Menu”, ply ) --The usermessage
umsg.End
end

–The local function isn’t called, so we’ll call it in two seconds
timer.Simple( 2, UM )
end
[/lua]

Then on the client:
[lua]
function DERMASTUFFHERE()

end
usermessage.Hook( “Menu”, DERMASTUFFHERE )
[/lua]

Thanks!