# Requirements

What you need installed before using moh-pawnshop.

## Required

| Dependency                 | Status   | Notes                                                |
| -------------------------- | -------- | ---------------------------------------------------- |
| `qb-core`                  | Required | Core framework. The resource is built on QBCore.     |
| `oxmysql` or `mysql-async` | Required | Used by the ban system to write to the `bans` table. |

## Optional

| Dependency              | Status       | Notes                                                                        |
| ----------------------- | ------------ | ---------------------------------------------------------------------------- |
| `qb-log`                | Optional     | If present, ban events are logged to the pawnshop category.                  |
| `PolyZone`              | Optional     | Used for the \[E] prompt zone when `Config.UseTarget` is false.              |
| Any supported inventory | One required | ox\_inventory, qs-inventory, ps-inventory, or qb-inventory.                  |
| Any supported target    | Optional     | ox\_target, qb-target, or qtarget. Needed only if `Config.UseTarget = true`. |

## Database

The resource writes to the `bans` table that QBCore creates by default. No additional SQL import is required.

```sql
-- Columns used by the auto-ban system:
-- name, license, discord, ip, reason, expire, bannedby
```

{% hint style="warning" %}
**bans table must exist**\
If your server does not have the QBCore `bans` table, the auto-ban system will throw a MySQL error. Run the QBCore SQL import first.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mohssins.gitbook.io/mohscriptsdocs/moh-pawnshop/requirements.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
