Installation
Step 1 — Download
hz_lib is a free asset. Download it from the Hz-Scripts shop or your FiveM Keymaster:
- Log in to keymaster.fivem.net
- Go to Granted Assets
- Download
hz_lib
hz_lib is required by all Hz-Scripts resources. If you already have it installed, you only need to update it when a new version is released.
Step 2 — Files
- Extract the archive
- Place the
hz_libfolder in yourresources/directory
server/
├── resources/
│ ├── [standalone]/
│ │ ├── hz_lib/
│ │ │ ├── bridge/
│ │ │ ├── data/
│ │ │ ├── local-assets/
│ │ │ ├── locales/
│ │ │ ├── modules/
│ │ │ ├── shared/
│ │ │ ├── ui/
│ │ │ ├── web/
│ │ │ ├── bridge_schema.lua
│ │ │ ├── config.lua
│ │ │ └── fxmanifest.lua
The folder name must be
hz_lib (case-sensitive on Linux servers).Step 3 — server.cfg
Add hz_lib to your server.cfg before any Hz-Script that depends on it:
# ox_lib (required by hz_lib)
ensure ox_lib
# Framework (if applicable)
ensure es_extended
# ensure qb-core
# hz_lib (before all Hz-Scripts)
ensure hz_lib
# Your Hz-Scripts
ensure hz_television
ensure hz_weather
# ensure hz-phone
Startup order is critical! hz_lib must start after ox\_lib and your framework but before any Hz-Script that uses it.
Step 4 — Configuration (optional)
Open config.lua to customize detection. By default, everything is set to 'auto' and will work out of the box.
See the Configuration page for all options.
Step 5 — Verify
Start your server and check the console for:
[HZ Bridge] v1.0.0 | Framework: qbcore | Inventory: ox_inventory | Notify: ox_lib | Dispatch: builtin | Target: ox_target | Menu: ox_lib | Banking: qb-banking
The v1.0.0 in this line is fixed text: it does not show your hz_lib version (the version is in fxmanifest.lua).
Done! If you see the detection line with your systems correctly identified, hz_lib is working. All Hz-Scripts will now use it automatically.
Updating
- Download the latest version from Keymaster
- Replace the files, but keep your
data/folder: it holds everything saved from/hzpanel(settings, theme, staff roles). If you changedconfig.lua, apply your changes to the new one - Restart:
ensure hz_lib, then restart your Hz-Scripts
hz_lib updates are backward compatible. Your existing Hz-Scripts will continue working after an update.
Troubleshooting
hz_lib doesn't detect my framework
- Ensure your framework (
es_extended,qb-core,qbx_core) isensured beforehz_lib - Check the resource name is exact (case-sensitive)
- If you want to force a framework, set
HZBridge.Framework = 'esx'(or'qbcore', etc.) inconfig.lua
A script says "hz_lib not found"
- Verify
hz_libis in yourserver.cfgwithensure hz_lib - Make sure the folder is named exactly
hz_lib - hz_lib must start before the script that needs it
Wrong system detected
If auto-detection picks the wrong system (e.g., wrong inventory), you can override it in config.lua:
HZBridge.Inventory = 'ox_inventory' -- Force specific inventory
