Skip to main content

Purpose

configs/controls.jsonc owns the command that opens the map, the key it is bound to by default, and how the camera responds to the mouse. Which controls a player uses is fixed and not configurable: dragging is always the left mouse button, zooming is always the wheel, and setting a destination is always the right button or a double click. What you change here is how those inputs feel. The full list is in How players use the map.

Options

The label players see for the binding in the FiveM key-mapping menu is the controls.description text in the language files. The shipped English label is Toggle 3D Map. Both sensitivities are relative to altitude, not to the world: the same drag covers more ground when the camera is higher. That is what keeps the map usable at every zoom level, and it means the defaults do not need adjusting for a particular part of the map.

Choosing a key

defaultKey accepts the key names FiveM uses, such as M, F5, TAB or ESCAPE. It applies only to players who have not set their own binding; a player who has rebound the key keeps their choice, and changing this value does not move it. ESCAPE is chosen so the map takes the place of the pause map. If your server binds ESCAPE elsewhere, pick another key here.

Example

Everything not listed keeps its shipped value.

Applying changes

Players who already rebound the key are unaffected by a change to defaultKey. Players who have not are moved to the new key at their next connection.

Safety

command is safe to change, but changing it after players have rebound the key resets their bindings: FiveM keeps a binding against the command name, and a renamed command is a new one.