Skip to Content
Report an error
Open in ChatGPTOpen in Claude

FiveM Controls

Control IDs are used to detect player input in FiveM scripts. Use these IDs with natives like IsControlPressed, IsControlJustPressed, and DisableControlAction. Prefer edge-triggered checks for one-time actions, register rebindable commands where possible, and avoid disabling controls outside the active interaction state.

Quick Usage

-- Check if player is pressing the jump key (Space) if IsControlPressed(0, 22) then print("Jump pressed!") end -- Disable the attack control DisableControlAction(0, 24, true)
// JavaScript equivalent if (IsControlPressed(0, 22)) { console.log("Jump pressed!"); } DisableControlAction(0, 24, true);

All Controls

Official source · Snapshot: · Download complete JSON

363 of 363 entries

Control types
IndexName
0PLAYER_CONTROL
2FRONTEND_CONTROL
Controls
IndexNameDefault QWERTYXbox Controller
0INPUT_NEXT_CAMERAVBACK
1INPUT_LOOK_LRMOUSE RIGHTRIGHT STICK
2INPUT_LOOK_UDMOUSE DOWNRIGHT STICK
3INPUT_LOOK_UP_ONLY(NONE)RIGHT STICK
4INPUT_LOOK_DOWN_ONLYMOUSE DOWNRIGHT STICK
5INPUT_LOOK_LEFT_ONLY(NONE)RIGHT STICK
6INPUT_LOOK_RIGHT_ONLYMOUSE RIGHTRIGHT STICK
7INPUT_CINEMATIC_SLOWMO(NONE)R3
8INPUT_SCRIPTED_FLY_UDSLEFT STICK
9INPUT_SCRIPTED_FLY_LRDLEFT STICK
10INPUT_SCRIPTED_FLY_ZUPPAGEUPLT
11INPUT_SCRIPTED_FLY_ZDOWNPAGEDOWNRT
12INPUT_WEAPON_WHEEL_UDMOUSE DOWNRIGHT STICK
13INPUT_WEAPON_WHEEL_LRMOUSE RIGHTRIGHT STICK
14INPUT_WEAPON_WHEEL_NEXTSCROLLWHEEL DOWNDPAD RIGHT
15INPUT_WEAPON_WHEEL_PREVSCROLLWHEEL UPDPAD LEFT
16INPUT_SELECT_NEXT_WEAPONSCROLLWHEEL DOWN(NONE)
17INPUT_SELECT_PREV_WEAPONSCROLLWHEEL UP(NONE)
18INPUT_SKIP_CUTSCENEENTER / LEFT MOUSE BUTTON / SPACEBARA
19INPUT_CHARACTER_WHEELLEFT ALTDPAD DOWN
20INPUT_MULTIPLAYER_INFOZDPAD DOWN
21INPUT_SPRINTLEFT SHIFTA
22INPUT_JUMPSPACEBARX
23INPUT_ENTERFY
24INPUT_ATTACKLEFT MOUSE BUTTONRT
25INPUT_AIMRIGHT MOUSE BUTTONLT
26INPUT_LOOK_BEHINDCR3
27INPUT_PHONEARROW UP / SCROLLWHEEL BUTTON (PRESS)DPAD UP
28INPUT_SPECIAL_ABILITY(NONE)L3
29INPUT_SPECIAL_ABILITY_SECONDARYBR3
30INPUT_MOVE_LRDLEFT STICK
31INPUT_MOVE_UDSLEFT STICK
32INPUT_MOVE_UP_ONLYWLEFT STICK
33INPUT_MOVE_DOWN_ONLYSLEFT STICK
34INPUT_MOVE_LEFT_ONLYALEFT STICK
35INPUT_MOVE_RIGHT_ONLYDLEFT STICK
36INPUT_DUCKLEFT CTRLL3
37INPUT_SELECT_WEAPONTABLB

Source scope and usage notes

The control-group index and control ID are different arguments. The source lists PLAYER_CONTROL as group 0 and FRONTEND_CONTROL as group 2. Keyboard values describe default QWERTY bindings, not a guarantee of a player’s customized binding. Prefer rebindable commands for resource actions.

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.