Keybind configuration
Last updated
Last updated
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 - 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.
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.
Here's an example:
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.