• Open derma panel for PlayerSpawn
    6 replies, posted
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. [url]http://wiki.garrysmod.com/page/GM/PlayerAuthed[/url]
no it is : PlayerInitialSpawn but I never do hook of my life can you help me
[lua] hook.Add("PlayerInitialSpawn", "OpenDermaMenu", function(ply) --execute code to open menu end) [/lua]
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: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PlayerInitialSpawn]GM/PlayerInitialSpawn[/url] and make the player execute with it a concommand which you added clientside with: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/concommand/Add]concommand.Add[/url] done.
Sorry, you need to Log In to post a reply to this thread.