πŸ“Šnova_hud

NOVA Framework HUD (Heads-Up Display). Shows health, armor, hunger, thirst, job, cash, bank, and a progress bar for actions.

Features

  • Health Bar β€” Circular ring showing health percentage

  • Armor Bar β€” Circular ring (hidden when 0)

  • Hunger Bar β€” Circular ring (from metadata)

  • Thirst Bar β€” Circular ring (from metadata)

  • Job Display β€” Current job label and duty badge

  • Cash & Bank β€” Money display

  • Server ID β€” Player's server ID

  • Speedometer β€” Shows when in vehicle

  • Progress Bar β€” For actions (eating, repairing, etc.) with optional animation and cancel

Configuration

The HUD reads player data from nova_core (GetPlayerData). Hunger and thirst come from player.metadata.hunger and player.metadata.thirst (0–100).

Progress Bar API

Use the progress bar for timed actions (eating, drinking, repairing, etc.):

Parameters

Parameter
Type
Description

label

string

Text shown during progress

duration

number

Duration in milliseconds

opts

table

Optional settings

Options (opts)

Option
Type
Description

animation

table

{ dict, clip, flag } β€” Animation to play

prop

table

{ model, bone, pos, rot } β€” Prop to attach

canCancel

boolean

Allow cancel with X key (default: true)

disableControls

boolean

Disable sprint/attack/aim (default: true)

Example: Progress with animation

Example: Simple progress (no animation)

Exports

Export
Parameters
Returns
Description

ProgressBar

label, duration, opts?

boolean

Start progress bar (true = done, false = cancelled)

CancelProgressBar

β€”

β€”

Cancel active progress bar

IsProgressActive

β€”

boolean

Is progress bar currently running?

ToggleHud

state (boolean)

β€”

Show/hide HUD

IsHudVisible

β€”

boolean

Is HUD visible?

Client Events

Event
Parameters
Description

nova_hud:toggle

state (boolean)

Toggle HUD visibility (e.g. when inventory opens)

Usage Examples

Show progress bar from inventory/other script

Hide HUD when opening custom UI

Check if progress is active

Notes

  • HUD updates every 200ms when visible and player is loaded

  • Minimap (radar) is hidden when HUD is hidden

  • nova_inventory automatically toggles HUD when opening/closing

  • Progress bar uses key X (control 73) to cancel when canCancel is true

  • The user-facing API may also be referenced as StartProgress in some contexts; the actual export name is ProgressBar

Last updated