GR1M Docs

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.

v1.0.0Needs ox_lib, qbx_core, oxmysql

Framework: Qbox. Requires: ox_lib, qbx_core, pma-voice. Fuel: lc_fuel (set Config.Fuel.resource in config).

#Install

  1. Ensure dependencies are started: ox_lib, qbx_core, lc_fuel, pma-voice are started: ox_lib, qbx_core, lc_fuel, pma-voice
  2. Keep qbx_hudcomponents (hides vanilla GTA HUD bits)
  3. 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

CommandDefaultPurpose
/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_seatbeltBSeatbelt (LocalPlayer.state.seatbelt)
/ghudvehicleF6Vehicle 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

Fuel defaults to lc_fuel GetFuel. Units default MPH.