> For the complete documentation index, see [llms.txt](https://anoxstudios.gitbook.io/anoxstudios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anoxstudios.gitbook.io/anoxstudios/free-scripts/illegal/anox-blackmarket.md).

# anox-blackmarket

<figure><img src="https://1081416849-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJQuNrU3dC4P0moC4lYmj%2Fuploads%2FDvn9JY95dfhMMQMTfEsJ%2FPlainJPG.jpg?alt=media&amp;token=fbaa9b8f-1e5a-4456-b179-943d4cae3532" alt=""><figcaption></figcaption></figure>

### ✨ Overview

> **anox-blackmarket** is a dynamic FiveM resource that adds a roving illegal merchant to your server. The dealer moves locations after a set time period

### ✨ Features

* **Dynamic dealer** that changes location automatically
* **Support for dirty money** or regular cash transactions
* **Compatible** with ESX, QBCore, and QBox frameworks
* **Localization support** through [ox\_lib](https://github.com/overextended/ox_lib)

### ✨ Installation Guide

* [ ] **Step 1: Download the** [**Resource**](https://github.com/ANoXShadow/anox-blackmarket)
* [ ] Download the resource from our GitHub repository
* [ ] Extract the files to your server's `resources` folder
* [ ] Rename the folder to `anox-blackmarket` if it's not already named correctly
* [ ] **Step 2: Database Setup**
* [ ] Run the following SQL query on your database:

```sql
CREATE TABLE IF NOT EXISTS `anox_blackmarket_locations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `last_change` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `current_location` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
);

INSERT INTO `anox_blackmarket_locations` (`id`, `last_change`, `current_location`) VALUES
(1, CURRENT_TIMESTAMP, 0);
```

* [ ] **Step 3: Configure Your server.cfg**
* [ ] Add the following line to your `server.cfg` file:

  ```
  ensure oxmysql
  ensure ox_lib
  ensure anox-blackmarket
  ```
* [ ] **Step 4: Configure the Resource**

- Open the `config.lua` file in the `anox-blackmarket` folder
- Set your preferred framework:
  * `Config.Framework = 'esx'` for ESX
  * `Config.Framework = 'qbcore'` for QBCore
  * `Config.Framework = 'qbox'` for QBox

### ✨ Preview

{% embed url="<https://www.youtube.com/watch?v=iX4n9J9sfHQ>" %}
