Keybind configuration

As the resource is mainly key based rather than commands, you may wish to change the keys used.

To do this, open the config.lua file and navigate to the main = { section.

openOrCloseDefibKey = {0, 23}, -- Find this at https://docs.fivem.net/docs/game-references/controls/ (F by default)
openOrCloseDefibKeyHelp = "INPUT_ENTER", -- For the on screen help message, found at the above documentation next to the control
putDownOrPickupDefibKey = {0, 58}, -- Find this at https://docs.fivem.net/docs/game-references/controls/ (F by default)
putDownOrPickupDefibKeyHelp = "INPUT_THROW_GRENADE", -- For the on screen help message, found at the above documentation next to the control
pushToShockKey = {0, 51}, -- Find this at https://docs.fivem.net/docs/game-references/controls/ (E by default)
pushToShockHelp = "INPUT_CONTEXT", -- For the on screen help message, found at the above documentation next to the control

openOrCloseDefibKey - This is the control that is used to open or close a public defib. putDownOrPickupDefibKey - This is the control that is used to put down or pickup a defib. pushToShockKey - This is the key that is used to shock a player when the defib is in operation.

A list of controls can be found on the FiveM documentation here. You should insert the control in brackets like this: {0, control}.

The 0 represents the input category, you should leave this at 0 to represent PLAYER_CONTROL, rather than FRONTEND_INPUT.

Simply find your desired control on the list and then set that after the comma next to the 0.

Control Help

You'll see next to each control setting there is another value for the "Help". This is used for the on-screen prompt.

On the same list you just found your desired control, you should copy the value in the "Name" column and paste this into the config too, in the right help value.

This control on the list has a number of 9, this should be added to the config like this: {0, 9}.

In the help section below, we should enter: "INPUT_SCRIPTED_FLY_LR", to display an on-screen prompt.

Last updated