Skip to content
NivoDocs

Search documentation

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 oxmysql and updated automatically by new versions.
  • Items where possible. Script items are added to the ESX items table or registered in QBCore automatically. For ox_inventory the console lists what to add.
  • Your own systems. Anything not supported out of the box connects through the files in custom/.

Requirements

ResourceRequiredNotes
ESX, QBCore or Qboxyeses_extended, qb-core or qbx_core
oxmysqlyesthe only database layer Nivo uses
ox_libnoused for notifications, menus and the progress bar when it runs

Installation

  1. Download nv_bridge from Granted Assets in the Cfx.re portal. It is added to your account with any Nivo purchase.
  2. Put the folder in your resources, for example resources/[nivo]/nv_bridge.
  3. 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
  1. 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

SystemSupportedWithout one
FrameworkESX Legacy, QBCore, Qbox—
Inventoryox_inventory, qb-inventory, ps-inventory, lj-inventory, qs-inventory, codem-inventory, ak47_inventoryframework items (no item metadata)
Targetox_target, qb-targetbuilt-in [E] prompt
Dispatchlb-tablet, cd_dispatch, ps-dispatch, qs-dispatch, rcore_dispatchnotification and blip for on-duty police
NotificationsokokNotify, brutal_notify, mythic_notify, pNotify, t-notify; ox_lib when set in configthe framework's notification: esx_notify (ESX), QBCore, Qbox
Progress barox_lib, progressbar, esx_progressbarbuilt-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.