pointshop icon indicating copy to clipboard operation
pointshop copied to clipboard

Adding more F keys

Open nightmarejoker opened this issue 10 years ago • 1 comments

is it possible you can add more than f1-f4 like up to f7 or something

nightmarejoker avatar Feb 18 '15 23:02 nightmarejoker

Why?

If you wanna add more keys, you need to create a custom command, and rebind it by default.

Use this table, located in sv_init.lua as reference:

local KeyToHook = {
    F1 = "ShowHelp",
    F2 = "ShowTeam",
    F3 = "ShowSpare1",
    F4 = "ShowSpare2",
    None = "ThisHookDoesNotExist"
}

hook.Add(KeyToHook[PS.Config.ShopKey], "PS_ShopKey", function(ply)
    ply:PS_ToggleMenu()
end)

moonexpr avatar May 04 '15 21:05 moonexpr