> For the complete documentation index, see [llms.txt](https://docs.rainmad.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainmad.com/resources/watch-admin-menu/configuration/bridges.md).

# Bridges

rm\_watch talks to your other scripts through small adapters, picked in `cfg.bridge`. The adapters live in `bridge/` and are not encrypted, so you can read them or add your own.

```lua
cfg.bridge = {
    framework    = 'auto',
    notification = 'ox_lib',
    vehiclelock  = 'auto',
    inventory    = 'auto',
    medical      = 'auto',
    weather      = 'auto',
    clothing     = 'auto',
}
```

Each field takes one of three things:

| Value           | Meaning                                                               |
| --------------- | --------------------------------------------------------------------- |
| `'auto'`        | Use the first supported resource that is started, in the order below. |
| an adapter name | Use that one.                                                         |
| `false`         | Off. Everything that needs it quietly does nothing.                   |

## What each one is for, and the names it takes

| Field          | Used for                                                       | Names, in `'auto'` order                                                                                                                                                          |
| -------------- | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `framework`    | Character names, money, jobs, owned vehicles, framework admins | `'qb'` (Qbox and QBCore), `'esx'`                                                                                                                                                 |
| `notification` | Every message rm\_watch shows a player                         | `'ox_lib'`, `'qb'`, `'esx'`, `'okokNotify'`, `'ps-ui'`, `'lation_ui'`, `'wasabi_notify'`, `'zsxui'` (no `'auto'`)                                                                 |
| `vehiclelock`  | Keys for a car spawned from the menu, and **Give keys**        | `'qb-vehiclekeys'`, `'wasabi_carlock'`, `'qs-vehiclekeys'`, `'cd_garage'`, `'Renewed-Vehiclekeys'`, `'okokGarage'`, `'t1ger_keys'`, `'MrNewbVehicleKeys'`, `'jaksam'`             |
| `inventory`    | Viewing, giving, removing and clearing items                   | `'ox_inventory'`, `'qb-inventory'`, `'qs-inventory'`, `'codem-inventory'`, `'core_inventory'`, `'tgiann-inventory'`, `'ak47_inventory'`, `'jaksam_inventory'`, then `'framework'` |
| `medical`      | Revive that also clears the medical script's downed state      | `'qbx_medical'`, `'qb-ambulancejob'`, `'esx_ambulancejob'`                                                                                                                        |
| `weather`      | Weather and time from the menu                                 | `'renewed-weathersync'`, `'qb-weathersync'` (also finds `qbx_weathersync`)                                                                                                        |
| `clothing`     | Opening the clothing menu on a player                          | `'illenium-appearance'`, `'qb-clothing'`, `'esx_skin'`                                                                                                                            |

{% hint style="info" %}
`'framework'` for the inventory reads the items your framework keeps itself. Use it for inventories that save into the framework's player data, such as ps-inventory or lj-inventory.
{% endhint %}

## When it goes wrong

If you name an adapter that never loads, the server console says so a moment after start:

```
cfg.bridge.inventory = my_inventory but no adapter registered; bridge.inventory calls will no-op
```

Fix the name, set the field to `'auto'`, or set it to `false`. Until then that whole category does nothing.

## Other script choices

Three more options outside `cfg.bridge` pick a script the same way:

| Option                | What it picks                                                                                                                                                                                                |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `cfg.vehicles.garage` | Where garage state is read: `'auto'`, `'jg-advancedgarages'`, `'qbx_garages'`, `'qb-garages'` or `'default'`. See [Vehicles](https://docs.rainmad.com/resources/watch-admin-menu/features/vehicles#garages). |
| `cfg.data.billing`    | Billing scripts to look for, first match wins. See [Economy and data](https://docs.rainmad.com/resources/watch-admin-menu/features/economy-and-data#invoices).                                               |
| `cfg.spectate.voice`  | `'auto'`, `'pma-voice'`, `'saltychat'`, `'tokovoip'` or `false`. See [Spectate](https://docs.rainmad.com/resources/watch-admin-menu/features/spectate).                                                      |
