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:title(string or nil): the notification titlemessage(string): the texttype(string):'info','success','warning'or'error'duration(number, optional): milliseconds. Defaults toConfig.Notifications.defaultDuration.
Status Bars
Feed hunger, thirst or any other bar yourself (0 to 100), for a server without a framework source or to override one:nil as the value (exports['revo_hud']:setStatus('hunger', nil)) to hand the bar back to the framework.
Stress
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 (withConfig.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.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: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:Key Hints
Replace the key hints panel’s list for this player, for example for a job or a minigame. Passnil to put the config’s list back:
command makes the hint follow the key the player bound to that command.