Installation
Install Newb_Bridge in three steps. Start it after ox_lib, your framework, inventory and target.
Newb_Bridge lets MrNewb scripts work with whatever framework, inventory and target your server runs. You install it once, and every MrNewb script uses it.
Download it
Get the newest build from the Releases page and unzip it into your resources folder. Keep the folder named Newb_Bridge.
You also need ox_lib, oxmysql, and a framework and inventory from the Supported list.
Add it to server.cfg
Put ensure Newb_Bridge after your framework, inventory and target, and before any MrNewb script.
ensure ox_lib
ensure oxmysql
ensure qbx_core # or qb-core / es_extended
ensure ox_inventory # your inventory
ensure ox_target # your target
ensure Newb_Bridge
# your MrNewb scripts go below
ensure MrNewbVehicleKeysRestart and check
Restart the server. That is all most servers need, because the bridge finds your resources by itself.
If the console shows a yellow No installed provider found for ... line, a part could not find a matching resource. You can ignore it for parts you do not use. Otherwise see Troubleshooting.
Notifications are built in
You do not need a notification resource. If you have none installed, the bridge shows its own: four types, markdown in the text, and item images.
If you already run a notification resource such as ox_lib or okokNotify, the bridge uses that instead. To always use the built-in ones, set Config.Notifications = "internal" in settings/bridge_resources.lua (Configuration).
Next steps
- Configuration: choose which resource the bridge uses, if you do not want auto-detect
- Supported: everything it works with
- Troubleshooting: console messages and what they mean
Writing your own resource? That is under For Developers.
Newb_Bridge
The shared layer MrNewb scripts use to work with your framework, inventory, target, and other resources. Scripts call bridge.* and the bridge talks to whatever you already run.
Configuration
Choose which resources Newb_Bridge uses, or leave everything on auto-detect. Settings live in settings/bridge_resources.lua.
