All products

np_hud

A complete HUD for FiveM: status tiles, voice, street and compass, a glass frame around the native minimap, a vehicle zone, a weapon card and hotbar, toasts with key actions, interaction prompts, progress bars and server theming from one brand colour.

v0.1.0qbx · qb · ESX · standaloneNo dependencies
Price TBAStore link follows at release
Installation guideDocumentation
Version
0.1.0
Frameworks
qbx, qb, ESX, standalone
Dependencies
None
Database
Not needed
Voice
pma-voice, SaltyChat, YACA
Languages
English, German
Server
A recent FiveM artifact (state bags, GlobalState)
Build
Node 18+ once, for the NUI
Assets
Fonts and icons bundled, nothing loads from a CDN
In a vehicle: speedometer with RPM arc and gear, fuel, engine, seatbelt, lights and lock
In a vehicle: speedometer with RPM arc and gear, fuel, engine, seatbelt, lights and lock

In-game captures from a local ESX server at 1920×1080. The weapon and hotbar card is a component render.

What's in it

Every zone can be switched off on its own, and each loop only runs while it has something to show.

Status

  • Health, armour, hunger, thirst, stamina, stress and oxygen (under water only), in the order you pick.
  • Tiles turn "low" at a threshold you set. Stress is inverted, armour never alarms.
  • Top bar with your server name and logo, cash, bank, job, player count, clock and weather.

Map, voice, street

  • A glass frame around the native minimap, square or round, always on or only in a vehicle.
  • Voice range, talking and radio indicator for pma-voice, SaltyChat or YACA.
  • Street, zone and a compass that follows the camera or the ped.

Vehicle

  • Speedometer with RPM arc and gear, in km/h or mph.
  • Fuel, engine, seatbelt, lights and lock indicators.
  • Built-in seatbelt you can turn off if you already run one.
  • Fuel from ox_fuel, LegacyFuel, cdn-fuel, ps-fuel or the native level.

Weapon and hotbar

  • Weapon card with clip and reserve ammo, low-ammo state and melee weapons.
  • A 10-slot hotbar with key caps, quantities and item tints, fed by your inventory.
  • Optional auto-hide after each update.

Notifications

  • Info, success, warning and error toasts with a timer bar, plus compact item toasts and top-centre announcements.
  • Key actions: answer a toast with Y / N, handled on the client or the server.
  • Routes your framework's notify events, so existing scripts look the same.

Prompts and progress

  • Interaction prompts with one or more key caps, e.g. "E Open garage · H Lock vehicle".
  • Progress bars with an icon, a cancel key and a return value, as a drop-in for your framework's.

Set it up

One brand colour themes everything

Pick a colour and how far it goes. Health stays red, armour blue and hunger orange, so status reads the same on every server. Players can preview a theme for themselves with /hudtheme.

StrengthWhat gets the brand colour
accentProgress bars, route and accent lines only
tiles+ the brand tiles
glass+ a tint on the glass surfaces
-- server default in shared/config.lua
Config.Theme = { brand = '#4f7bff', strength = 'tiles' }

-- or at runtime, e.g. blue tiles while on duty as police
exports.np_hud:SetTheme('#4f7bff', 'tiles')

Compatibility

Everything is detected when the resource starts. Nothing is required: without a framework np_hud runs standalone.

KindSupported
Frameworkqbx_core, qb-core, es_extended (+ esx_status for hunger and thirst), or standalone
Voicepma-voice, SaltyChat, yaca-voice, or none
Fuelox_fuel, LegacyFuel, cdn-fuel, ps-fuel, or the native fuel level
Notify / progressReplaces the framework's through exports or a few-line patch
ResolutionDesigned for 1920×1080, scales with the viewport height. Extra scale setting on top
StandaloneWith qbx / qb / ESX
Health, armour, stamina, oxygen✓✓
Voice, street, compass, clock, weather, players✓✓
Vehicle, weapon, hotbar, notifications✓✓
Money, job–✓
Hunger, thirst–✓ (ESX needs esx_status)
Stress–qbx / qb, ESX only with a stress status

Installation

No database, no SQL, no streamed assets. Node 18+ is needed once to build the NUI.

  1. Put the resource in resources/ as np_hud.
  2. Build the NUI once:
    cd web && npm ci && npm run build
  3. Start it after your framework, voice and fuel resources, because detection runs once at start:
    ensure qbx_core      # or qb-core / es_extended (+ esx_status)
    ensure pma-voice     # or saltychat / yaca-voice
    ensure ox_fuel       # optional
    ensure np_hud
  4. Turn off the HUD your framework ships (qb-hud, ps-hud, esx_hud, …) and any script that moves the minimap.
  5. Optional: set your server name, logo and brand colour in shared/config.lua, and run /hud_demo with Config.Debug = true to see every toast, a prompt and a progress bar.

For your own scripts

Notifications, prompts, progress, the hotbar and the theme are exports on the client, and notifications on the server too.

exports.np_hud:Notify('Saved', 'Your outfit was saved.', 'success', 3000)

exports.np_hud:ShowPrompt({ id = 'atm', icon = 'credit-card', keys = { { key = 'E', label = 'Use ATM' } } })

local ok = exports.np_hud:Progress({ label = 'Lockpicking', icon = 'unlock-keyhole', duration = 5000 })

Questions

Do I need a framework?

No. Standalone shows health, armour, stamina, oxygen, voice, street, compass, vehicle, weapon, hotbar and notifications. Money, job, hunger, thirst and stress need qbx, qb or ESX.

Does it replace my framework's notifications and progress bar?

Yes. Point your framework's notify and progress functions at the np_hud exports with a few lines, or turn on Config.CaptureFrameworkNotify to show framework notify events as toasts.

What does it cost in performance?

Each loop runs only while it has something to do: the vehicle loop only in a vehicle, the weapon loop only while armed. Poll intervals are in the config.

I already have a seatbelt script.

Set Config.Seatbelt.enabled = false so the two don't fight.

Which languages are included?

English and German. Other languages are a locale table in shared/locales.lua.

Will the minimap line up on ultrawide screens?

The frame assumes a centred 16:9 layout. If the radar doesn't line up, Config.Debug prints the computed values and you set them by hand in Config.Minimap.native.

Works well with

Drop it in, ensure it, done.

Installation, configuration and every export are in the docs.

Install np_hud