# Quick Keys Menu

**The keybind is a menu that allows you to use any key on your keyboard in the game. You need to apply the keybindings.sql file and run the script.**

<mark style="color:green;">Here is an excerpt from the config.lua file : (parts of the excerpt are hidden)</mark>

```lua
Config = {}
Config.DEBUG = false
Config.openKey = "F1"
Config.RefreshTime = 200 -- In milliseconds, the time it takes for the script to check the other menus (do not go below 100).
Config.UseVorpMenu = true -- true -> use vorp menu / false -> use warmenu
Config.DeadCloseMenu = true -- close Menu when player dead
Config.DisableControlCloseMenu = true -- close menu when DisableAllControlActions(0) is call
Config.blackKey = { "TAB", "ESCAPE", "SHIFT" } -- key blacklist (example)
Config.resetKey = "DELETE" -- key used to remove assigned key

--[[
Exemple :
["Open Inventory"] = {
    key = nil,
    eventCall = {
        clientEvent = "vorp_inventory:OpenInv",
        serverEvent = ""
        command = "",
        keypad = "", -- You can use 0xF1301666 or keys["R"] from shared/KEYS.lua
    },
    -- optional description
    description = "The key to open your inventory"
    -- optionnal job/group whitelist (you can use both at the same time)
    allowedGroups = { "admin", "mod" } -- groups allowed
    allowedJobs = { "farmer", "bartender" }, -- jobs allowed
    --
}]]

Config.Binds = {
    ["Crouch"] = {
        key = nil,
        eventCall = {
            keypad = 0xDB096B85
        },
        description = "The key to crouch"
    },
    ["Reload Character"] = {
        key = nil,
        eventCall = {
            command = "rc"
        },
        description = "The key to reload your char"
    },
    ["Bartebder Menu"] = {
        key = nil,
        eventCall = {
             clientEvent = "",
             serverEvent = ""
             command = "",
             keypad = "",
        },
        allowedJobs = { "bartender" }, -- jobs allowed
    },
    ["Open Admin Menu"] = {
        key = nil,
        eventCall = {
            command = "adminMenu"
        },
        allowedGroups = { "admin", "mod" }, -- groups allowed
    }
}
    -- this content is hidden in the excerpt
}
```
