Installation
Install Survival HUD, set your framework and fuel script, and start it.
1. Download the resource
Download SAG-survival-hud from your Cfx.re portalOpens your granted assets filtered to it. Sign in with the Cfx.re account that bought it.Open portalExtract it into your server's resources folder. Keep the folder name SAG-survival-hud: the script and its exports use that name.
2. Install ox_lib
3. Set your framework
Open SAG-survival-hud/config.lua and set Config.Framework:
Config.Framework = "qb" -- qb, qbox or esx
| Value | Framework | Hunger and thirst come from |
|---|---|---|
qb | QBCore | qb-core |
qbox | Qbox | The player's hunger and thirst state |
esx | ESX | esx_status |
4. Set your fuel script
In the same file, set Config.Fuel:
Config.Fuel = "LegacyFuel" -- LegacyFuel, hrs, ox_fuel or custom
| Value | Fuel script |
|---|---|
LegacyFuel | LegacyFuel |
hrs | hrs_fuel |
ox_fuel | ox_fuel |
custom | Any script with a GetFuel(vehicle) export. Put its resource name in Config.CustomFuel. |
Important The default is
LegacyFuel. If you do not run it, change this setting. With no fuel script, use any other value, for example"none", and the HUD reads the game's own fuel level.
5. Start the resource
Add these lines to server.cfg, after your framework. Skip lines you already have:
ensure ox_lib
ensure qb-core # or qbx_core / es_extended
ensure SAG-survival-hud
Check it works
Join the server and load your character. The survival HUD shows your health, armour, hunger and thirst, and the minimap is square. Type /hud: the HUD and minimap hide. Type it again to show them.
