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
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
- Step 1:
Click into the field and press the key you want to bind. The id appears immediately.
- Step 2:
Alternatively search by name if you are looking for a controller input or a key you cannot press right now.
- Step 3:
Note the control group. Most keys sit in group 0, some only respond in group 2.
- 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.
Related tools
FiveM Hash Generator - joaat / GetHashKey
Generate FiveM hashes instantly using the joaat algorithm. Get decimal, hex (0x), unsigned decimal hashes. Batch mode for multiple inputs. Copy GetHashKey() Lua code.
FiveM Native Database Search
Searchable FiveM native database with 200+ common natives organized by category. Find native names, hashes, parameters, return types, descriptions and Lua usage examples.
FiveM Event Logger & Debugger Tool
Generate FiveM event listener code for server and client. Event naming validator, security checker, and template generator for common FiveM event patterns.