Configuration
Choose which resources Newb_Bridge uses, or leave everything on auto-detect. Settings live in settings/bridge_resources.lua.
Open settings/bridge_resources.lua in the Newb_Bridge folder. Set a value to a resource name to pin it, or leave "auto" and the bridge uses the first supported resource that is started. Every setting ships as "auto". Notifications, fuel, and dispatch fall back to a built-in internal provider when nothing else is installed. Banking, doorlock, phone, and weather fall back to none, which does nothing. The rest do nothing until a supported resource is running.
Config = {}
Config.Debug = false
Config.VersionCheck = true
Config.Framework = "auto"
Config.Inventory = "auto"
Config.Target = "auto"
Config.VehicleKeys = "auto"
Config.VehicleFuel = "auto"
Config.Menu = "auto"
Config.Notifications = "auto"
Config.Inputs = "auto"
Config.TextUI = "auto"
Config.ProgressBar = "auto"
Config.BossMenu = "auto"
Config.Dispatch = "auto"
Config.Banking = "auto"
Config.Doorlock = "auto"
Config.Phone = "auto"
Config.Weather = "auto"
Config.TaskGroups = {
DefaultMaxPlayers = 8,
MaxMaxPlayers = 8,
MinMaxPlayers = 2,
DefaultImage = '',
InviteRadius = 10.0,
JoinCodeLength = 6,
MaxNameLength = 32,
}Using one_inventory? You must set Config.Inventory = "one_inventory". Do not leave it on "auto". one_inventory provides itself as ox_inventory, so auto-detect treats it as ox_inventory and builds ox_inventory image paths (nui://ox_inventory/web/images/...). one_inventory is not fully compatible with those paths, so item images do not load, and shops can fail to open. Pinning it makes the bridge use the one_inventory module and one_inventory/web/images/.
-- Newb_Bridge/settings/bridge_resources.lua
Config.Inventory = "one_inventory"Restart Newb_Bridge and every script that uses it after changing this.
Using ZSX UI V2? The resource has to be named exactly ZSX_UIV2, and that is the value to pin (Config.TextUI = "ZSX_UIV2"). The old lowercase zsx_uiv2 is no longer a valid value.
| Setting | What it does |
|---|---|
Config.Debug | true prints one line per module on each side (client and server) with the provider it loaded, and a warning when a provider has no code for that side. Both are normal for one-sided modules such as weather. It also turns on debug drawing in the target and DUI helpers. Leave false in production. |
Config.VersionCheck | Checks GitHub on start and prints newer versions to the server console only. Set false to turn off every version check, including the ones the other MrNewb scripts run through the bridge. |
Config.TaskGroups | Limits for the party/task group menu (max players, invite radius, join code length). |
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. Set Config.Debug = true and restart to see what each module resolved to: every side prints one line per module with its provider.
Two values are not resources and can be pinned like any other:
| Value | Meaning |
|---|---|
internal | The bridge's own built-in version. It works with nothing else installed. Used by notifications, fuel, and dispatch. |
none | Nothing was found, so the module does nothing. Used by banking, doorlock, phone, and weather. Pin it to switch a module off. |
Valid values for each setting, in check order: Supported.
Theme
settings/theme.lua holds one color palette used by every Newb UI: backgrounds, text, buttons, status colors, corner radius and font. Change a value, restart Newb_Bridge, then restart or reopen the resources that use it. Leave a token out and each resource keeps its own built-in color. Colors are #rgb or #rrggbb; tokens marked (any) in the file also accept rgb() and rgba().
Developers can read it with exports.Newb_Bridge:GetTheme() or GetThemeCss(). See Utilities.
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
Pin providers
Use when auto-detect picks the wrong resource (for example both qs-inventory and ox_inventory are running). Set only the ones you need:
-- Newb_Bridge/settings/bridge_resources.lua
Config.Inventory = "ox_inventory"
Config.Framework = "qbx_core"
Config.Target = "ox_target"
Config.Notifications = "ox_lib"