Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.31 KB

qb-commandbinding.md

File metadata and controls

43 lines (30 loc) · 1.31 KB
description
Quickly bind commands to hotkeys

🔄 qb-commandbinding

Introduction

  • Allows users to bind keys to the keys F2-F9 can also be changed in the "Fivem" section of GTAV "keybinds" menu

{% hint style="info" %} Using the menu is as easy as putting the command name in the COMMAND field and the argument in the ARGUMENT field. If you don't fill out an argument then the command will just run as intended without any additional information sent to it.

Example: Add the word "fix" into the command field and leave the argument blank. This command repairs your vehicle and does not take any arguments

Example: Add the word "revive" into the command field. If you leave the argument field blank then it will revive you but you could also add a number for a players id which will revive them instead {% endhint %}

Preview

Configuration

Adding available keys to bind (found in client/main.lua)

{% hint style="warning" %} Currently must add additional keys to the html and JavaScript files {% endhint %}

local availableKeys = { -- https://docs.fivem.net/docs/game-references/controls/
    {289, "F2"}, -- Corresponding control and label
    {170, "F3"},
    {166, "F5"},
    {167, "F6"},
    {168, "F7"},
    {56,  "F9"},
    {57, "F10"},
}