pointshop
pointshop copied to clipboard
Adding more F keys
is it possible you can add more than f1-f4 like up to f7 or something
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)