Nivo Bridge
Configuration
One file configures every Nivo script on the server: nv_bridge/config.lua. With 'auto' nothing needs to be set up; change a value only to force a system or to use your own ('custom', see Custom systems). Restart the Nivo scripts after a change.
config.lua
-- Nivo Development | nv_bridge/config.lua
-- One place to configure every Nivo script on this server. Restart the Nivo scripts after a change.
--
-- 'auto' detects what is running (recommended, nothing to set up)
-- a name forces that system, e.g. Dispatch = 'cd'
-- 'custom' uses your own code from the custom/ folder (custom/dispatch.lua, custom/notify.lua, ...)
-- server.cfg can override any of these without editing this file: setr nv_bridge_dispatch cd (also _framework,
-- _inventory, _target, _notify, _progress). Use setr so clients get the value too.
return {
Framework = 'auto', -- 'auto' | 'esx' | 'qb' | 'qbox'
Inventory = 'auto', -- 'auto' | 'ox' | 'qb' | 'ps' | 'lj' | 'qs' | 'codem' | 'ak47' | 'native' (framework items) | 'custom'
Target = 'auto', -- 'auto' | 'ox' | 'qb' | 'builtin' ([E] prompt, no target resource needed) | 'custom'
Dispatch = 'auto', -- 'auto' | 'lb' (lb-tablet) | 'cd' | 'ps' | 'qs' | 'rcore' | 'builtin' (notification + blip) | 'custom'
Notify = 'auto', -- 'auto' (notify resource, else framework) | 'esx' (esx_notify) | 'qb' | 'qbox' | 'ox' (ox_lib)
-- | 'okok' | 'brutal' | 'mythic' | 'pnotify' | 'tnotify' | 'custom'
Progress = 'auto', -- 'auto' | 'ox' | 'qb' (progressbar) | 'esx' (esx_progressbar) | 'builtin' | 'custom'
-- Language of all Nivo scripts unless a script sets its own Config.Locale. Missing texts fall back to English.
-- Nivo scripts ship: en, cs, de, fr, es, pt, tr, pl, it, nl
Locale = 'en',
-- Add the items of Nivo scripts automatically where the inventory allows it (ESX items table, QBCore AddItem).
-- ox_inventory cannot register items at runtime: the console then lists the missing ones to add to ox_inventory/data/items.lua.
AutoItems = true,
-- Jobs that receive police alerts of Nivo scripts (a script can send its own list).
PoliceJobs = { 'police', 'sheriff' },
-- Colors of every Nivo window (NUI). A script can override it with its own Config.Theme.
-- preset: 'nivo' (default: navy, blue, cyan) | 'emerald' | 'violet' | 'crimson' | 'amber' | 'graphite'
-- Own colors on top of a preset (hex): accent = buttons and selection, accent2 = highlights, background = window tint.
-- mode: 'dark' (default) | 'light'. Every player can still switch it in the window (sun / moon button), remembered per client.
Theme = {
preset = 'nivo',
mode = 'dark',
-- accent = '#3b82f6', accent2 = '#22d3ee', background = '#030817',
},
}
Colors (Theme)
Every Nivo window takes its colors from Theme. Pick a preset, or set your own hex colors on top of it:
| Preset | Accent | Highlight | Background |
|---|---|---|---|
nivo (default) | #3b82f6 | #22d3ee | #030817 |
emerald | #10b981 | #5eead4 | #03120d |
violet | #8b5cf6 | #e879f9 | #0b0618 |
crimson | #ef4444 | #fb923c | #140507 |
amber | #f59e0b | #fde047 | #120c02 |
graphite | #e4e4e7 | #a1a1aa | #0a0a0c |
Theme = { preset = 'violet', accent = '#a855f7' },
mode is the default for everyone: 'dark' or 'light'. Each player can switch it in the window with the sun / moon button, and the choice is remembered on their PC.
One script can have its own colors: add Config.Theme = { ... } to that script's config.lua. Text on buttons switches between white and black by itself, so light accents stay readable.
Override from server.cfg
Every option can also be forced from server.cfg, without editing config.lua. Use setr so clients get the value too:
setr nv_bridge_dispatch cd
setr nv_bridge_inventory ox
setr nv_bridge_notify okok
Order: convar, then config.lua, then automatic detection.
Detection order
| Setting | Checked in this order | Fallback |
|---|---|---|
Framework | qbx_core, qb-core, es_extended | none (the script stops with a clear message) |
Inventory | ox_inventory, qs-inventory, codem-inventory, ak47_inventory, core_inventory, origen_inventory, tgiann-inventory, okokInventory, ps-inventory, lj-inventory, qb-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 | built-in notification and blip for on-duty police |
Notify | okokNotify, brutal_notify, mythic_notify, pNotify, t-notify | the framework's own: esx_notify / ESX, QBCore, Qbox (ox_lib only when set) |
Progress | ox_lib, progressbar, esx_progressbar | built-in bar |