Hud
A complete player HUD: status rings, vehicle speedo and fuel, seatbelt and cruise, a customisable layout editor, a GTA-style pause menu with a server bulletin, and notifications.
Framework: Qbox. Requires: ox_lib, qbx_core, pma-voice. Fuel: lc_fuel (set Config.Fuel.resource in config).
#Install
- Ensure dependencies are started:
ox_lib,qbx_core,lc_fuel,pma-voiceare started:ox_lib,qbx_core,lc_fuel,pma-voice - Keep
qbx_hudcomponents(hides vanilla GTA HUD bits) - In your server cfg:
ensure GR1M_Hud
# stop any other HUD resource first
# Required for /ghudops (changelog, keybinds, contracts). There is deliberately
# no fallback to the generic `command` ace — contracts can pay out real money.
add_ace group.admin gr1mhud.admin allow
#Commands / keybinds
| Command | Default | Purpose |
|---|---|---|
/togglehud | — | Show/hide HUD |
/ghudsettings | — | Settings panel |
/ghud | — | Settings panel (alias of /ghudsettings) |
/ghudlayout | — | Settings, opened straight into Edit Layout |
/ghudops | — | Bulletin admin (needs gr1mhud.admin) |
/toggle_seatbelt | B | Seatbelt (LocalPlayer.state.seatbelt) |
/ghudvehicle | F6 | Vehicle control panel |
Preferences save to KVP and stick on relog. The first-flight wizard was removed — /ghud, /ghudsettings and /ghudlayout all open the settings panel.
Minimap tuning commands (/radardebug, /radarrefresh, /mapfit) only register when Config.Radar.debug = true, so they are not on every live client's command list.
#Exports
exports.GR1M_Hud:ToggleHud(true|false)
exports.GR1M_Hud:toggleHud(true|false) -- alias
exports.GR1M_Hud:toggleVehicleControl(true|false)
exports.GR1M_Hud:Notify({ type='info', title='Hello', text='World', duration=4000 })
exports.GR1M_Hud:PushBarState(id, { priority=40, label='JOB', value='Active', accent='#6FA8E8', ttl=3000 })
exports.GR1M_Hud:ClearBarState(id)
exports.GR1M_Hud:SetJobTracker({ title='Delivery', detail='Go to marker' })
exports.GR1M_Hud:SetPrompt({ text='[E] Blood Fridge' })
exports.GR1M_Hud:HidePrompt()
exports.GR1M_Hud:StartProgress({ label='Searching', duration=4000 })
exports.GR1M_Hud:StopProgress()
exports.GR1M_Hud:SkillCheck({ difficulty='medium', label='Lockpick' })
exports.GR1M_Hud:SetDowned({ timer='03:20' })
exports.GR1M_Hud:SetWidgetVisible(name, visible)
#Config
config/config.lua— defaults, branding, vitals, fuel resource, ticksconfig/vehicle.lua— seatbelt / cruise / classesconfig/dynamicbar.lua— priorities & auto statesconfig/permissions.lua— locked player prefs
Fuel defaults to lc_fuel GetFuel. Units default MPH.
GR1M