Input Mapper
The input mapper is used with RegisterKeyMapping to create custom keybinds that
players can rebind in their FiveM settings. This is the recommended way to handle
custom key inputs.
Use stable command names, provide clear descriptions, and select defaults that do not
conflict with common GTA V or framework bindings.
Quick Usage
-- Register a custom key mapping
RegisterKeyMapping("my_command", "My Custom Action", "keyboard", "F5")
-- Register the associated command
RegisterCommand("my_command", function()
print("F5 pressed! (or whatever the player rebound it to)")
end, false)
-- Gamepad mapping
RegisterKeyMapping("my_command", "My Custom Action", "PAD_DIGITALBUTTONANY", "LSHOULDER")// JavaScript equivalent
RegisterKeyMapping("my_command", "My Custom Action", "keyboard", "F5");
RegisterCommand("my_command", () => {
console.log("F5 pressed!");
});All Input Mapper Keys
Official source · Snapshot: · Download complete JSON
26 of 26 entries
| Input Mapper | Description |
|---|---|
| DIGITALBUTTON_AXISDIGITALBUTTON_AXIS | Controller button input as axis input |
| GAME_CONTROLLEDGAME_CONTROLLED | Game controlled input |
| JOYSTICK_AXISJOYSTICK_AXIS | Joystick / flight stick axis input |
| JOYSTICK_AXIS_NEGATIVEJOYSTICK_AXIS_NEGATIVE | Joystick / flight stick axis input (always negative) |
| JOYSTICK_AXIS_POSITIVEJOYSTICK_AXIS_POSITIVE | Joystick / flight stick axis input (always positive) |
| JOYSTICK_BUTTONJOYSTICK_BUTTON | Joystick / flight stick button input |
| JOYSTICK_IAXISJOYSTICK_IAXIS | Joystick / flight stick axis input (inverted) |
| JOYSTICK_POVJOYSTICK_POV | Joystick / flight stick point of view input |
| JOYSTICK_POV_AXISJOYSTICK_POV_AXIS | Joystick / flight stick point of view axis input |
| KEYBOARDKEYBOARD | Keyboard input (including the Xbox Controller Chatpad) |
| MKB_AXISMKB_AXIS | Mouse & keyboard input as axis input |
| MOUSE_ABSOLUTEAXISMOUSE_ABSOLUTEAXIS | Mouse axis input (absolute) |
| MOUSE_BUTTONMOUSE_BUTTON | Mouse button input |
| MOUSE_BUTTONANYMOUSE_BUTTONANY | Mouse button input (no known difference from MOUSE_BUTTON) |
| MOUSE_CENTEREDAXISMOUSE_CENTEREDAXIS | Mouse axis input (centered) |
| MOUSE_RELATIVEAXISMOUSE_RELATIVEAXIS | Mouse axis input (relative) |
| MOUSE_SCALEDAXISMOUSE_SCALEDAXIS | Mouse axis input (scaled) |
| MOUSE_NORMALIZEDMOUSE_NORMALIZED | Mouse axis input (normalized) |
| MOUSE_WHEELMOUSE_WHEEL | Mouse wheel input |
| PAD_ANALOGBUTTONPAD_ANALOGBUTTON | Controller trigger input |
| PAD_AXISPAD_AXIS | Controller axis input |
| PAD_DEBUGBUTTONPAD_DEBUGBUTTON | Controller button input (debug interface, non functional) |
| PAD_DIGITALBUTTONPAD_DIGITALBUTTON | Controller button input |
| PAD_DIGITALBUTTONANYPAD_DIGITALBUTTONANY | Controller button input (no known difference from PAD_DIGITALBUTTON) |
| TOUCHPAD_ABSOLUTE_AXISTOUCHPAD_ABSOLUTE_AXIS | PS4/5 controller touchpad axis input (absolute) |
| TOUCHPAD_CENTERED_AXISTOUCHPAD_CENTERED_AXIS | PS4/5 controller touchpad axis input (centered) |
Source scope and usage notes
Choose the mapper first, then a parameter from that mapper’s page. These strings are not the numeric control IDs used by IsControlPressed. The source warns that mapper descriptions are inferred and that axis inputs are not currently useful in FiveM; a listed identifier is not proof that a binding works in your runtime.
Images are served from this repository, not hotlinked. Empty source fields and unknown identifiers are retained as unknown. View the official source or download the complete dataset.
Related game references
- DIGITALBUTTON_AXIS
- GAME_CONTROLLED
- JOYSTICK_AXIS
- JOYSTICK_AXIS_NEGATIVE
- JOYSTICK_AXIS_POSITIVE
- JOYSTICK_BUTTON
- JOYSTICK_IAXIS
- JOYSTICK_POV
- JOYSTICK_POV_AXIS
- KEYBOARD
- MKB_AXIS
- MOUSE_ABSOLUTEAXIS
- MOUSE_BUTTON
- MOUSE_BUTTONANY
- MOUSE_CENTEREDAXIS
- MOUSE_NORMALIZED
- MOUSE_RELATIVEAXIS
- MOUSE_SCALEDAXIS
- MOUSE_WHEEL
- PAD_ANALOGBUTTON
- PAD_AXIS
- PAD_DEBUGBUTTON
- PAD_DIGITALBUTTON
- PAD_DIGITALBUTTONANY
- TOUCHPAD_ABSOLUTE_AXIS
- TOUCHPAD_CENTERED_AXIS