# Configuration

Full reference for every option in `config.lua`.

## General Settings

| Option              | Type    | Default | Description                                                                                 |
| ------------------- | ------- | ------- | ------------------------------------------------------------------------------------------- |
| `Config.Webhook`    | string  | —       | Discord webhook URL. All sales are posted here.                                             |
| `Config.BankMoney`  | boolean | `false` | If `true`, money goes to the player's bank. If `false`, paid as cash.                       |
| `Config.UseTarget`  | boolean | `true`  | If `true`, uses the active target system (ox/qb/qtarget). If `false`, uses E key proximity. |
| `Config.UseTimes`   | boolean | `false` | If `true`, the shop is only accessible during in-game opening hours.                        |
| `Config.TimeOpen`   | number  | `8`     | In-game hour when the shop opens. Requires `UseTimes = true`.                               |
| `Config.TimeClosed` | number  | `20`    | In-game hour when the shop closes. Requires `UseTimes = true`.                              |

## `Config.PawnItems`

An array of items the shop will accept. Each entry requires an `item` (internal name) and a `price` (per unit).

```lua
Config.PawnItems = {
    { item = 'goldchain', price = 500 },
    { item = 'diamond', price = 1500 },
    { item = 'rolex', price = 3000 },
    { item = 'tablet', price = 600 },
    { item = 'laptop', price = 800 },
    { item = 'goldbar', price = 2500 },
    { item = 'markedbills', price = 200 },
}
```

{% hint style="warning" %}
**Item names must be exact** The `item` value must exactly match the item's internal name in your inventory resource. A mismatch means the item will never appear in the UI — and sending an unknown item name triggers the anti-exploit ban.
{% endhint %}

## `Config.PawnLocation`

Array of shop zones. Each entry defines a BoxZone for the PolyZone / E-key system and is also used for the server-side proximity check. You can add multiple locations.

```lua
Config.PawnLocation = {
    {
        coords = vector3(-781.14, -608.94, 30.28),
        length = 3.0,
        width = 3.0,
        heading = 0,
        minZ = 29.28,
        maxZ = 31.28,
    },
    -- Add more locations here
}
```

## Full `config.lua` Example

```lua
Config = {}

Config.Webhook = 'https://discord.com/api/webhooks/...'
Config.BankMoney = false
Config.UseTarget = true
Config.UseTimes = false
Config.TimeOpen = 8
Config.TimeClosed = 20

Config.PawnItems = {
    { item = 'goldchain', price = 500 },
    { item = 'diamond', price = 1500 },
    { item = 'rolex', price = 3000 },
}

Config.PawnLocation = {
    {
        coords = vector3(-781.14, -608.94, 30.28),
        length = 3.0,
        width = 3.0,
        heading = 0,
        minZ = 29.28,
        maxZ = 31.28,
    },
}
```


---

# 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/configuration.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.
