FiveM Key Hash Lookup

Find control IDs for keyboard and controller inputs. Use with IsControlJustPressed(0, controlId)

Press Any Key

Click here, then press any key

-
0 controls
Key / InputControl ID

What this tool is for

Key bindings in FiveM do not use letters, they use control ids, and the numbering follows the GTA V input system rather than the keyboard. E is 38, G is 47, and there is no rule connecting the two. This lookup lets you press the actual key and tells you the id, so you can stop hunting through reference tables.

How to use it

  1. Step 1:

    Click into the field and press the key you want to bind. The id appears immediately.

  2. Step 2:

    Alternatively search by name if you are looking for a controller input or a key you cannot press right now.

  3. Step 3:

    Note the control group. Most keys sit in group 0, some only respond in group 2.

  4. Step 4:

    Copy the id into IsControlJustPressed, or use RegisterKeyMapping if players should be able to rebind it.

Frequently asked questions

What is the difference between IsControlPressed and IsControlJustPressed?

IsControlPressed is true for as long as the key is held, IsControlJustPressed only in the frame it goes down. For a menu you want JustPressed, otherwise a single press scrolls through the whole list.

Why does my key do two things at once?

Most control ids are already used by the game. E is also the interaction key, G also switches seats. Disable the game action with DisableControlAction and read yours with IsDisabledControlJustPressed.

What are the control groups for?

Group 0 is the general set, group 1 is vehicle related, group 2 is used for some menu inputs. The same id can mean different things per group, so an id copied without its group is only half the information.

Should I use RegisterKeyMapping instead?

For anything a player uses regularly, yes. It puts the binding into the FiveM settings menu, so players can rebind it and conflicts with other scripts become visible instead of silent.