To bind a key in FiveM, press F8 and type bind keyboard F5 "command"; to remove it, type unbind keyboard F5. Keys that a server's scripts set up (inventory, phone, radio and similar) are changed in the pause menu under Settings > Key Bindings > FiveM instead.
Commands and key names below come from the Cfx.re documentation, and how FiveM stores and matches binds comes from FiveM's source code for the Legacy client, both checked on 16 November 2026. Menu steps come from answers on the Cfx.re forum and are marked as such. We did not run them on a game client for this guide.
Which kind of keybind are you changing?
FiveM has three places where a key can get its job. Find the right one first, because each is changed in a different way.
| Kind of key | Who sets it | Where you change it |
| Console bind | You, with bind | F8 console (bind / unbind) |
| Resource key mapping | A server script, with a default key | Esc > Settings > Key Bindings > FiveM |
| GTA V control | The game | GTA V's own key binding settings |
Change GTA V controls from inside FiveM, in the pause menu under Settings > Key Bindings. Per FiveM's source code, the client keeps its own copy of your GTA V profile files, so controls you change in single player or GTA Online do not carry over; a player on the Cfx.re forum reported exactly that in 2026.
The F8 client console is FiveM's own: Cfx.re's console command reference says you open it by pressing F8. Other keys you use on a server, such as the ones for chat, phone or inventory, come from that server's resources or from GTA V controls, so they differ between servers.
How do you bind a key in FiveM?
Use the console bind command. The documented syntax is bind <mapper> <input> <command>, where the mapper is the device (keyboard for keys) and the input is the key name.
- Press F8 in FiveM to open the console.
- Type the bind, with the command in quotation marks:
bind keyboard F5 "cl_drawfps true"
- Press Enter, close the console with F8 and test the key.
This example turns on FiveM's FPS counter, a documented client command; bind keyboard F6 "cl_drawfps false" would turn it off again. The command part can be any client command or any command the server accepts. A server command you type in chat as /command goes into the bind without the slash, so test it in chat first. Emotes work the same way, and our guide to binding emotes to a key walks through that check.
Bind several commands to one key
Separate commands with a semicolon. Cfx.re's example also uses wait to pause between them; a Cfx.re cookbook post gives the value in milliseconds, so wait 1500 is 1.5 seconds:
bind keyboard F9 "say hi; wait 250; say bye"
Bind a key only for one resource
rbind works like bind but, according to the documentation, only runs while the named resource is in use on the server. You need the resource's name, which the server or its documentation has to tell you:
rbind <resource> keyboard F6 "command"
See all your binds
Type bind on its own in F8. The documentation describes it as listing all configured bindings.
Which key names can you use?
Cfx.re's KEYBOARD input list names every key the keyboard mapper accepts. The ones most players need:
- Function keys:
F1 to F24
- Letters and numbers:
A to Z, 0 to 9
- Numpad:
NUMPAD0 to NUMPAD9, ADD, SUBTRACT, MULTIPLY, DIVIDE, DECIMAL, NUMPADENTER
- Modifiers:
LSHIFT, RSHIFT, LCONTROL, RCONTROL, LMENU (left Alt), RMENU (right Alt)
- Others:
INSERT, DELETE, HOME, END, PAGEUP, PAGEDOWN, CAPITAL (Caps Lock), arrow keys UP, DOWN, LEFT, RIGHT
Pick a key that the server does not already use for something else. F8 itself opens the console, so it is a poor choice.
The documentation lists a MOUSE_BUTTON mapper (for example MOUSE_EXTRABTN1 and MOUSE_EXTRABTN2, listed as mouse buttons 3 and 4, and IOM_WHEEL_UP for the wheel) and a PAD_DIGITALBUTTON mapper for controller buttons (for example LUP_INDEX for D-pad up, RUP_INDEX for Y / Triangle). Following the documented syntax, a bind on mouse button 3 would be:
bind MOUSE_BUTTON MOUSE_EXTRABTN1 "command"
We have not tested mouse or controller binds. One player on the Cfx.re forum reported that unbind on a mouse button returned no error but the button kept firing, so check that you can remove such a bind before relying on it.
How do you change a server's keybind in Settings?
When a server script registers a key with FiveM's RegisterKeyMapping function, the key becomes editable in the game's settings. A Cfx.re forum answer gives the path as Settings > Key Bindings > FiveM; other answers write it as "Keybindings", and FiveM's source code names that settings pane "FiveM".
- While connected to the server, press Esc to open the pause menu.
- Open Settings, then Key Bindings, then the FiveM section.
- Find the action by its description, for example "Open Inventory".
- Select the field and press the new key.
Forum answers add two details: a helper on the Cfx.re forum told a player to double-click the field and press the key while it flashes, and another answer says pressing Delete on a selected bind clears it.
These keys are saved on your PC for each resource. A Cfx.re forum answer explains the consequence, and FiveM's source code confirms it: once you have used a resource, a later change to its default key in the server's code does not move your saved key. If a server announces a new default and your key stays the same, change it here yourself.
How do you unbind a key in FiveM?
For a key you bound in the console, open F8 and run unbind with the same mapper and key:
unbind keyboard F5
The documentation says this unbinds all commands bound to that input, so one unbind clears every console bind on the key.
Per FiveM's source code, unbind also removes a server script's key on that input, but the script puts its default key back the next time you join or the resource restarts. To move a server's key for good, rebind it under Settings > Key Bindings > FiveM. For a GTA V action, change it in the pause menu's key binding settings.
There is no documented command that resets every bind at once. The documentation only lists unbind <mapper> <input> for single keys, so remove binds one key at a time.
Why won't a key unbind or change?
- The key belongs to a resource, not a console bind.
unbind removes a resource's key only until you rejoin; then the script restores its default. Change the action under Key Bindings > FiveM instead. A Cfx.re forum helper suggested exactly this to a player whose key kept firing, and added that a server can also bind keys through game controls.
- The script reads a GTA V control directly. Older or simpler scripts check a GTA V control instead of registering a FiveM key mapping. Those actions never appear in the FiveM section. As a regular on the Cfx.re forum explained, you can find which GTA V control the script uses and rebind that control in GTA V's settings; the change applies only to you.
- The menu won't accept a new key. Several players have reported on the Cfx.re forum that the key field stays blank or refuses a key. In one 2024 thread, a FiveM cache wipe was suggested but did not fix it, and a 2026 report was closed without an answer.
Where does FiveM save your keybinds?
FiveM saves every key binding in %appdata%\CitizenFX\fivem.cfg: your console binds as bind … lines and keys you changed in Settings as rbind <resource> … lines. That is what FiveM's source code writes, and a 2021 forum answer shows a bind stored there as bind KEYBOARD F13 "inv". Clearing the FiveM cache or uninstalling FiveM does not touch this file. If you edit it by hand, close FiveM first and keep a copy of the original.
The same file also stores client profile values such as the first-person field of view, covered in our FiveM FOV command guide.
Other F8 commands worth a key
Anything you can type in F8 can go on a key. The client console has commands for the FPS counter, connecting to servers and more; our list of documented F8 console commands covers them, and the FPS counter guide explains cl_drawfps, which you can bind for testing.
For server owners: RegisterKeyMapping
If you want players to be able to change your script's key, register it with RegisterKeyMapping instead of checking a fixed control. The native takes the command, a description shown in the settings menu, a default mapper and a default key:
RegisterCommand('+handsup', function() handsUp = true end, false)
RegisterCommand('-handsup', function() handsUp = false end, false)
RegisterKeyMapping('+handsup', 'Hands Up', 'keyboard', 'i')
The documentation's example pairs a +handsup command, which raises the hands, with a -handsup command that lowers them again, and registers the key on the + command. The same page shows an alternate key registered with a ~! prefix on the command. Remember that players keep their saved key, so a new default only reaches players who have not used the resource yet. More scripting walkthroughs are in our Lua scripting tutorials.
Questions
What key opens the console in FiveM?
F8. The console is where bind, unbind and the other client commands are typed.
Do my binds work on every server?
A console bind runs its command on any server, but it only does something where that server provides the command. An rbind only runs while its resource is in use. Resource key mappings are saved per resource.
Is bind keyboard case-sensitive?
No. FiveM's source code matches mapper and key names without regard to case, so keyboard f5 and KEYBOARD F5 are the same; the documentation just mixes both styles.
How do you reset FiveM keybinds?
Change keys back one by one under Settings > Key Bindings > FiveM, or close FiveM, copy fivem.cfg and delete the bind or rbind lines you want gone. Per FiveM's source code, a server key whose line you removed comes back at the server's default the next time you join.