1. Post #1

    May 2012
    20 Posts
    How would I go about binding my VGUI menu to a key for my server?
    I have added a concommand to open the menu by typing implode into the console, and tested it in sp by adding the lua to lua>autorun>client>resource.lua The problem is I dont know how to make it open by pressing f3. Any help is appreciated.

  2. Post #2
    Gold Member
    Wizard of Ass's Avatar
    April 2009
    4,448 Posts
    Afaik F3 is calling ShowSpare2 in the server.

  3. Post #3
    dylanb5123's Avatar
    January 2011
    272 Posts
    -- Replace "HOOK_NAME_HERE" with something like "F3Menu", 
    -- it's just a hook name, doesn't matter what it is.
    -- Replace "COMMAND_NAME_HERE" with your console command's name. Also doesn't matter what it is.
    hook.Add("ShowSpare1", "HOOK_NAME_HERE", function(ply)

    Hope I could help.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Lua Helper Lua Helper x 1 (list)