Skip to main content
Most exports are client-side and are called from a client script. The nitrous management exports and the notification event at the end are server-side.

Notifications

Send a notification in the HUD’s style from any client script:
Parameters:
  • title (string or nil): the notification title
  • message (string): the text
  • type (string): 'info', 'success', 'warning' or 'error'
  • duration (number, optional): milliseconds. Defaults to Config.Notifications.defaultDuration.
From the server, notify one player or everyone:
revo_hud:server:notify is server-only. Clients cannot trigger it, so a player cannot send notifications to others.
To send the framework’s own notifications to the HUD, see Configuration.

Status Bars

Feed hunger, thirst or any other bar yourself (0 to 100), for a server without a framework source or to override one:
A value you set this way beats the framework’s own. Pass nil as the value (exports['revo_hud']:setStatus('hunger', nil)) to hand the bar back to the framework.

Stress

Stress is also raised and relieved by QBCore’s hud:server:GainStress and hud:server:RelieveStress events, which most QBCore scripts already use.

Seatbelt and Harness

Nitrous (Client)

Read the car you are looking at, or feed the gauge from your own nitrous script (with Config.Nitro.driveBoost = false):

Nitrous (Server)

For a mechanic shop, a garage or an admin menu. Each export takes a vehicle entity, a network id or a plate, and is saved by plate.
Use Config.Nitro.fitting = 'export' if you want only your own scripts to fit nitrous kits.

Hiding the HUD

Hide the HUD for a moment, for example for a phone, an appearance menu or a cutscene. Each reason is undone separately, so two scripts can hide it at once without interfering:
The same can be done with the revo_hud:hide and revo_hud:show client events.

Custom Framework

Tell the HUD when your character is in the world:

Train Scripts

A train job knows things the train does not: the line’s speed limit, the next stop and its own top speed. All values are optional, and speeds are in km/h:
Getting out of a train clears the info, so a job that forgets to clear does not leave a stale stop on the next train.

Key Hints

Replace the key hints panel’s list for this player, for example for a job or a minigame. Pass nil to put the config’s list back:
Adding a command makes the hint follow the key the player bound to that command.

Export Reference