Binds

Adding new binds is in binds table, you must add a new key which must be the event name you want to trigger. Its value is a table with 3 needed fields, label, desc and defaultKey.

Config.binds = {
 --[[
---------------------
-- EXAMPLE OF BIND --
---------------------

["srb_binds:OpenMenu"] = { -- Event name
    label = "Keybinds Setting", -- Button text
    desc = "Open the keybinds setting menu", -- Button description
    defaultKey = "F9", -- Default key
    isServerSide = false, -- If the event is server side
},

]]

["srb_binds:OpenMenu"] = {
    label = "Keybinds Setting",
    desc = "Open the keybinds setting menu",
    defaultKey = "F9",
},
["srb_resmanager:OpenMenu"] = {
    label = "Resource Manager",
    desc = "Open the resource manager menu",
    defaultKey = "F10",
},
["vorp_inventory:OpenInv"] = {
    label = "Inventory",
    desc = "Open the inventory menu",
    defaultKey = "I",
},
["pma-voice:cycleproximity"] = {
    label = "Voice distance",
    desc = "Change voice distance",
    defaultKey = "F11",
},

Add a bind

First, add a new bind data like that example.

Next, add the event name to the usedBinds table, sorted alphabeticaly.

Remove a bind

For remove a bind, just delete the line you want.

Also, for memory optimization, delete its bind data.

Last updated