Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding more F keys #195

Open
nightmarejoker opened this issue Feb 18, 2015 · 1 comment
Open

Adding more F keys #195

nightmarejoker opened this issue Feb 18, 2015 · 1 comment

Comments

@nightmarejoker
Copy link

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

@moonexpr
Copy link

moonexpr commented May 4, 2015

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants