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

# Advanced Players Marketplace V2

Local player markets with listings, auctions, offers, trades, chat and seller ratings.

Local player markets with listings, auctions, offers, trades, chat and seller ratings.

## Requirements

ESX, QBCore or Qbox, **oxmysql**, and ox\_inventory or QB inventory. ox\_target and qb-target are optional.

## Installation

{% stepper %}
{% step %}

### Install

Use the folder name `tn_marketplace` and import `marketplace.sql`.
{% endstep %}

{% step %}

### Start

```cfg
ensure oxmysql
ensure tn_marketplace
```

Start framework, inventory and optional target first.
{% endstep %}

{% step %}

### Configure

Edit `config.lua`: place market NPCs, set taxes and item rules. Restart and visit a market NPC.
{% endstep %}
{% endstepper %}

## Configuration

| Setting                 | Purpose                                 |
| ----------------------- | --------------------------------------- |
| `Config.Bridge`         | Framework, inventory, target and notify |
| `Config.Markets`        | Locations, NPCs and taxes               |
| `Config.Listings`       | Duration, prices and auctions           |
| `Config.ItemRules`      | Blacklist and price limits              |
| `Config.HandlerProfile` | Seller registration                     |
| `Config.Features`       | Offers and offline auction delivery     |

Players register a seller profile, create listings and manage bids, offers and payouts in the market UI.

<details>

<summary>The market does not open</summary>

Check NPC coordinates and the selected target provider. With no target, enable `Config.Target.useHelpText`. Confirm the SQL import and provider startup in the server console.

</details>

## Technical documentation

* [Configuration & item rules](https://tn-modifications.gitbook.io/tn-modifications/tn_marketplace/configuration.md) — Configuration examples, supported options and setup checks.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://tn-modifications.gitbook.io/tn-modifications/tn_marketplace.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
