In-game
Default controls & key bindings
Default keys for HUD toggle, seatbelt and cruise control, all rebindable in FiveM key bindings.
PSTUDIOS-HUD registers its actions through FiveM key mappings. Every key listed below is just a default: each one appears in FiveM > Settings > Key Bindings and can be reassigned per player without touching the config.
Default keys
- Toggle HUD — F7 (Config.Keybind). Binding entry: "PSTUDIOS-HUD: toggle HUD".
- Seatbelt — B (Config.Seatbelt.key). Binding entry: "PSTUDIOS-HUD: seatbelt". Only registered when Config.Seatbelt.enabled is true.
- Cruise control — Caps Lock (CAPITAL). Binding entry: "PSTUDIOS-HUD: cruise control".
- Settings menu (/hud) — no key assigned by default; the player sets one. Binding entry: "PSTUDIOS-HUD: open settings".
Where the defaults are defined
-- config.lua
Config.Keybind = 'F7' -- Toggle the whole HUD
Config.Seatbelt = {
enabled = true,
key = 'B',
...
}-- client/main.lua
RegisterKeyMapping('pshud_togglehud', _U('key_togglehud'), 'keyboard', Config.Keybind)
-- client/seatbelt.lua
RegisterKeyMapping('pshud_seatbelt', _U('key_seatbelt'), 'keyboard', Config.Seatbelt.key)
RegisterKeyMapping('pshud_cruise', _U('key_cruise'), 'keyboard', 'CAPITAL')Behavior notes
- Seatbelt only toggles when the player is inside a vehicle, and plays a pick-up/put-away UI sound on toggle.
- Cruise control only works when the player is the driver (seat -1) of a vehicle.
💡To change a default key for everyone, edit Config.Keybind / Config.Seatbelt.key in config.lua. To change it for one player, use FiveM's Key Bindings screen — that always overrides the default.