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.
cfg.bridge = {
framework = 'auto',
notification = 'ox_lib',
vehiclelock = 'auto',
inventory = 'auto',
medical = 'auto',
weather = 'auto',
clothing = 'auto',
}Each field takes one of three things:
'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'
When it goes wrong
If you name an adapter that never loads, the server console says so a moment after start:
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:
cfg.vehicles.garage
Where garage state is read: 'auto', 'jg-advancedgarages', 'qbx_garages', 'qb-garages' or 'default'. See Vehicles.
cfg.data.billing
Billing scripts to look for, first match wins. See Economy and data.
cfg.spectate.voice
'auto', 'pma-voice', 'saltychat', 'tokovoip' or false. See Spectate.