Configuration
Open settings/bridge_resources.lua in the Newb_Bridge folder.
Set a value to a resource name if you want to pin it, or leave "auto" and it'll grab the first one it finds. Config.Dispatch starts on "internal", not "auto".
Config = {}
Config.Debug = false
Config.VersionCheck = true
Config.Framework = "auto" -- qbx_core, qb-core, es_extended
Config.Inventory = "auto" -- see Supported
Config.Target = "auto" -- ox_target, tgiann-target, core_focus, qb-target, sleepless_interact, interact, bl_sprites
Config.VehicleKeys = "auto" -- MrNewbVehicleKeys, qbx_vehiclekeys, ...
Config.VehicleFuel = "auto" -- ox_fuel, LegacyFuel, cdn-fuel, ... (fallback: internal)
Config.Menu = "auto" -- ox_lib, lation_ui, qb-menu
Config.Notifications = "auto" -- ox_lib, okokNotify, lation_ui, ...
Config.Inputs = "auto" -- ox_lib, lation_ui
Config.TextUI = "auto" -- ox_lib, lation_ui, okokTextUI, cd_drawtextui, jg-textui, lab-TextUI, zsx_uiv2
Config.ProgressBar = "auto" -- ox_lib, lation_ui, wasabi_uikit, progressbar, zsx_uiv2
Config.BossMenu = "auto" -- qbx_management, qb-management, esx_society, ...
Config.Dispatch = "internal" -- or "auto" / a named provider
Config.TaskGroups = {
DefaultMaxPlayers = 8,
MaxMaxPlayers = 8,
MinMaxPlayers = 2,
DefaultImage = '',
InviteRadius = 10.0,
JoinCodeLength = 6,
MaxNameLength = 32,
}Auto-detection
When a setting is "auto", Newb_Bridge walks the list in order and picks the first resource that is started. If none are started yet (bridge init can run before dependents), it picks the first whose state is not "missing". If still nothing, it uses the module fallback when one exists.
Start order in server.cfg matters. Bridged resources should be running before scripts that depend on them. On start, the server console prints one line per module (auto, manual, or auto, fallback).
Provider names and check order: Supported.
Locales
Newb_Bridge reads the locale ox_lib is already using, so there's nothing to set per script and no locale option of its own. Set ox:locale once in server.cfg and every resource that uses the bridge follows it:
setr ox:locale enMissing codes fall back to en. Full list: Supported.
Configuration examples
Force a specific inventory
Use when auto-detect picks the wrong resource (for example both qs-inventory and ox_inventory are present):
-- Newb_Bridge/settings/bridge_resources.lua
Config.Inventory = "ox_inventory"
Config.Framework = "qbx_core"
Config.Target = "ox_target"
Config.Notifications = "ox_lib"Installation
How to install Newb_Bridge. Start Newb_Bridge after ox_lib, your framework, inventory, target, and any other resource it bridges.
Supported
What this can hook up to. The check order in each table comes from settings/auto_detect.lua. Pin a name in Configuration if you don't want it guessing.