> 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/blackmarkets-player-run-contraband-operation/dependencies.md).

# Dependencies

Install and start every **required** dependency *before* the Blackmarket resource. Optional resources only need to be present if you want the feature they power.

## Required

| Resource                                               | Purpose                         | Notes                                                                                                        |
| ------------------------------------------------------ | ------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| **Framework**                                          | Player data, money, jobs        | `QBCore` / `Qbox` or `ESX`. Auto-detected by default (`cfg.bridge.framework = 'auto'`).                      |
| [**ox\_lib**](https://github.com/overextended/ox_lib)  | UI, callbacks, locales, caching | Required by the whole resource. Must start before Blackmarket.                                               |
| [**oxmysql**](https://github.com/overextended/oxmysql) | Database                        | All tables are created automatically on first start — no SQL import needed.                                  |
| **Inventory**                                          | Items, weapons, item images     | Uses your server's existing inventory. Every entry in `cfg.items` must exist in it (as an item or a weapon). |
| **Target**                                             | World interactions              | `ox_target` or `qb-target`. Auto-detected (`cfg.bridge.target = 'auto'`).                                    |

## Optional

| Resource                                | Powers                                  | Config key                                                               |
| --------------------------------------- | --------------------------------------- | ------------------------------------------------------------------------ |
| **lb-phone** / **yseries**              | The Blackmarket phone app (vendor chat) | `cfg.bridge.phone`                                                       |
| **Dispatch system**                     | Police alerts for drops & public sales  | `cfg.bridge.dispatch`                                                    |
| **Vehicle keys**                        | Hand the van keys to the driver         | `cfg.bridge.vehiclelock`                                                 |
| **Notification / TextUI / Progressbar** | Visual style of prompts and notifies    | `cfg.bridge.notification`, `cfg.bridge.textUI`, `cfg.bridge.progressbar` |

{% hint style="info" %}
The bridge ships built-in adapters for notifications, text UI and progress bars, so the script runs without any of those resources. Point the matching `cfg.bridge.*` key at your own resource to use it instead. See [Phone & Integrations](/resources/blackmarkets-player-run-contraband-operation/phone-and-integrations.md) for the full list of supported resources.
{% endhint %}

## No external screenshot resource

Member and owner mugshots are generated with native ped-headshot APIs, so you **do not** need `screenshot-basic` or any image-host resource.
