Nivo Bridge
nv_bridge
The shared layer every Nivo script runs on. Free with every purchase, installed once.
nv_bridge is the shared layer every Nivo script runs on. It comes free with every Nivo purchase, is open source (not escrowed) and is installed once for all Nivo scripts on your server.
What it does
- One script, every framework. Each Nivo script is a single resource for ESX, QBCore and Qbox. The bridge detects your framework when the script starts and loads the matching code.
- Detects your server. Framework, inventory, target, dispatch, notifications and progress bar are found automatically. Nothing to configure.
- Database without manual SQL. Tables are created on the first start through
oxmysqland updated automatically by new versions. - Items where possible. Script items are added to the ESX
itemstable or registered in QBCore automatically. Forox_inventorythe console lists what to add. - Your own systems. Anything not supported out of the box connects through the files in custom/.
Requirements
| Resource | Required | Notes |
|---|---|---|
| ESX, QBCore or Qbox | yes | es_extended, qb-core or qbx_core |
| oxmysql | yes | the only database layer Nivo uses |
| ox_lib | no | used for notifications, menus and the progress bar when it runs |
Installation
- Download
nv_bridgefrom Granted Assets in the Cfx.re portal. It is added to your account with any Nivo purchase. - Put the folder in your resources, for example
resources/[nivo]/nv_bridge. - Start it after your framework, inventory and
oxmysql, and before every Nivo script:
# server.cfg
ensure oxmysql
ensure ox_lib # optional
ensure es_extended # or qb-core / qbx_core
ensure ox_inventory # your inventory, target, dispatch ...
ensure nv_bridge
ensure nv_drugs-selling # your Nivo scripts
- Restart the server. Each Nivo script prints what the bridge detected:
[nv_drugs-selling] nv_bridge 1.0.0: framework=qbox inventory=ox target=ox dispatch=cd notify=qbox progress=ox
If a required resource is missing, the script prints one clear message with what is missing and where to get it, then stops. It never downloads anything.
Supported out of the box
| System | Supported | Without one |
|---|---|---|
| Framework | ESX Legacy, QBCore, Qbox | ā |
| Inventory | ox_inventory, qb-inventory, ps-inventory, lj-inventory, qs-inventory, codem-inventory, ak47_inventory | framework items (no item metadata) |
| Target | ox_target, qb-target | built-in [E] prompt |
| Dispatch | lb-tablet, cd_dispatch, ps-dispatch, qs-dispatch, rcore_dispatch | notification and blip for on-duty police |
| Notifications | okokNotify, brutal_notify, mythic_notify, pNotify, t-notify; ox_lib when set in config | the framework's notification: esx_notify (ESX), QBCore, Qbox |
| Progress bar | ox_lib, progressbar, esx_progressbar | built-in bar |
Anything else: Custom systems.
Updating
Replace the nv_bridge folder but keep your config.lua and the files in custom/. Database changes are applied automatically on the next start.