For the complete documentation index, see llms.txt. This page is also available as Markdown.

πŸ‘±SLEEK HUD

Here check the installation guide

Advanced HUD for FiveM with status bars, vehicle speedometer, compass, aircraft instruments, bicycle HUD, stress system, seatbelt, zones, announcements, and a full player customization panel.

Frameworks: ESX / QBCore (auto-detected) SQL: oxmysql Β· mysql-async Β· ghmattimysql (auto-detected) Lua: 5.4


Features

  • Auto-detection of ESX / QBCore β€” no manual framework config needed

  • Health, armor, hunger, thirst, oxygen and stress bars with configurable colors

  • Cash, bank and optional third currency display (black money, crypto, etc.)

  • Job and grade display with full label mapping

  • Vehicle speedometer with 4 styles: Arc, Bold, Round, Minimal

  • Compass heading bar (N/S/E/W with degrees) β€” toggleable from HUD Panel

  • Aircraft HUD with compass rose, altitude and speed β€” activates in planes and helicopters

  • Boat HUD with nautical compass rose, heading and speed in knots β€” activates in boats

  • Bicycle HUD with minimal speedometer β€” activates on bicycles

  • Seatbelt system with ejection, sounds and NUI warning β€” auto-disabled on bicycles

  • Cruise control with keybind and command

  • Weapon display with ammo count and weapon images

  • Low fuel warning with sound

  • Safe Zone / Red Zone system with on-screen indicators and map blips

  • Server announcement system with centered overlay and progress bar

  • Full HUD customization panel (display mode, color, size, speedometer style, toggles)

  • Minimap control β€” always visible or vehicle-only

  • Cinematic mode command

  • Address / street name display

  • Player count indicator

  • Multi-language support (EN, ES β€” easily extensible)

  • Stress visual effects (blur, timecycle, camera shake, screen pulses) with 5 intensity levels

  • Stress relief items from inventory (ox_inventory, qb, qs-inventory, esx)

  • Stress from: weapons, vehicle speed, collisions, unbuckled driving

  • Stress reduction in Safe Zones

  • Job-based stress whitelist

  • Discord-ready command system

  • Low resource consumption


Requirements

Dependency
Notes

FiveM server build 5848+

Lua 5.4 support

OneSync

Required

es_extended or qb-core/qbox

Framework

oxmysql, mysql-async or ghmattimysql

SQL wrapper (only needed if Config.UseStress = true)

PolyZone

Required β€” used for Safe/Red zone detection

pma-voice

Optional β€” proximity cycle indicator


Installation

Step 1 β€” Place the resource

Copy forge-hud into your server's resources/ directory.

Step 2 β€” server.cfg

PolyZone must start before forge-hud.

Step 3 β€” Start your server

The resource auto-creates all required database tables on first boot β€” no manual SQL import needed.

The forge_hud_stress.sql file is included as a reference, but auto-migration handles everything automatically.

Important

The HUD must be started with a full server restart β€” hot-ensuring while the server is running may cause issues with the minimap and player count markers.


Configuration

All config files live in the config/ folder:

File
Purpose

config.lua

Master config β€” HUD features, stress, seatbelt, zones, sounds, UI theme

config_framework.lua

Framework bridge functions β€” adapt to custom frameworks here

config_lang.lua

Translations (EN, ES) for NUI and notifications

Auto-detection

Framework, SQL library and voice system are detected automatically at startup. Override manually if needed:


HUD Elements

Status Bars

Health, armor, hunger, thirst, oxygen and stress. Each bar can be toggled individually:

Money Display

Gang Display (QBCore only)


Vehicle HUD

Speedometer

4 built-in styles selectable from the HUD Panel:

Style
Description

arc

Classic analog arc gauge

digital

Digital numeric display

sport

Sport-style RPM gauge

minimal

Compact numeric-only

Compass

Heading bar at the top center with cardinal directions (N, NE, E, SE, S, SW, W, NW) and degree readout. Smooth lerp animation.

Toggleable from the in-game HUD Panel.

Aircraft HUD

Activates automatically when entering a plane or helicopter. Replaces the car speedometer with:

  • Compass rose with heading indicator

  • Altitude display

  • Airspeed display

Boat HUD

Activates automatically when entering a boat. Replaces the car speedometer with a nautical-themed HUD:

  • Compass rose that rotates with vessel heading

  • Heading readout in degrees

  • Speed in knots (KN)

  • Anchor icon

Bicycle HUD

Activates automatically on bicycles. Shows a compact speedometer with a bicycle icon. Seatbelt system is automatically disabled on bicycles.

Fuel Warning


Seatbelt System

Full seatbelt with ejection on collision, NUI sounds and unbuckled warning.

Bicycles and motorcycles are excluded from the seatbelt system.


Cruise Control


Stress System

Persistent stress saved to database. Multiple stress sources and configurable visual effects.

Stress Sources

Source
Config

Weapons

Config.StressChance, Config.WeaponStress β€” burst aggregation per shot window

Vehicle speed

Config.MinimumSpeed (buckled), Config.MinimumSpeedUnbuckled β€” periodic stress above threshold

Collisions

Config.StressCollision β€” damage-proportional stress on vehicle impacts

Vehicle Stress Tuning

Stress Relief

Items β€” configurable inventory items that reduce stress on use:

Safe Zones β€” automatic stress reduction while inside:

Job whitelist β€” disable stress for specific jobs:

Visual Effects

5 intensity levels with configurable blur, timecycle, camera shake and screen pulses:

External Stress

Use your own stress system instead of the built-in one:

Then implement MAV.Functions.GetStress in config_framework.lua.

Database


Zones

Safe Zone and Red Zone system β€” on-screen indicator and optional map blips.


Announcements

Server-wide announcement overlay triggered by admins. Centered on screen with backdrop blur, animated card, icon pulse and progress bar.

Usage in-game: /announce Your message here

Test command: /testhudannounce Your message here


Notifications

Toggle individual HUD notifications:


UI Theme

Customize all colors from config β€” no CSS editing needed:


HUD Panel (Player Customization)

Players can open the HUD Panel to customize their experience:

  • Display modes: Normal, Reduced, Minimal

  • Color picker β€” change accent color

  • Size slider β€” scale HUD elements

  • Speedometer style β€” choose between 4 styles

  • Toggles: Cinematic, No HUD, No Minimap, Compass

Settings are saved per player in browser localStorage.

Open with keybind (default I) or command:


Commands

Command
Description
Config Key

/menu

Open HUD customization panel

Config.Commands.OpenHUD

/cinematic

Toggle cinematic mode

Config.Commands.Cinematic

/nohud

Toggle HUD visibility

Config.Commands.NoHud

/resethud

Reset HUD to defaults

Config.Commands.ResetHUD

/announce [msg]

Server-wide announcement (admin)

Config.Commands.Announce

/toggleseatbelt

Toggle seatbelt

Config.Commands.ToggleSeatbelt

/cruise

Toggle cruise control

Config.Cruise.Command

/zone

Teleport to zone (debug only)

Config.Commands.ZoneTP


Sounds

All sounds use GTA native audio. Configure per-event:


Jobs

Define job names and grade labels to display on the HUD. This also improves performance by avoiding framework lookups:


Weapons

Weapon images are stored in nui/images/weapons/. Add or replace PNGs matching the weapon hash name:

Whitelisted weapons do not generate stress.


Translations

Add or edit language packs in config/config_lang.lua:

Keys prefixed with ui. are sent to the NUI frontend. All other keys are used client/server side for notifications and chat messages.


Custom Framework

If you use a custom or modified framework, edit the bridge functions in config/config_framework.lua:

  • MAV.Functions.Notify(message, type) β€” notification system

  • MAV.Functions.GetFuel(vehicle) β€” fuel reading

  • MAV.Functions.PlayerIsLogged() β€” player loaded check

  • MAV.Functions.GetPlayerData() β€” money, job, hunger, thirst

  • MAV.Functions.GetStaticId() β€” static player ID (optional)

All event names (player loaded, job update, money change, etc.) are also configurable in this file.


Exports

Client Exports

Export
Description

ShowSafeZoneHud()

Show the SAFE ZONE indicator on the HUD

ShowRedZoneHud()

Show the RED ZONE indicator on the HUD

HideZoneHud()

Hide the zone indicator

Usage:


Events

Server Events (trigger from other resources)

Event
Parameters
Description

forge-hud:server:AddStress

amount, reason, meta

Add stress to the triggering player

forge-hud:server:RemoveStress

amount, reason, meta

Remove stress from the triggering player

forge-hud:addStress

value

Legacy β€” add stress (no reason/meta)

forge-hud:server:announce

message

Broadcast announcement to all players (admin only)

Client Events (trigger from server with TriggerClientEvent)

Event
Parameters
Description

forge-hud:client:announceReceive

message

Show announcement overlay on target client(s)

forge-hud:updateStress

value

Force-set stress value on a client

forge-hud:resetStress

β€”

Reset stress to 0 on a client

Example β€” add stress from another resource:

Example β€” send announcement from server:


Support

Discord: https://discord.gg/UTVssdrXRV

Last updated