# Configuration

All settings are contained in a single file: `config.lua`. No changes are needed in any other file for basic setup.

## Framework & Compatibility

| Key                        | Type   | Default     | Description                                                                                                                                                                                  |
| -------------------------- | ------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Config.Framework`         | string | `'qb-core'` | The export name of your core resource. Currently only QBCore is supported.                                                                                                                   |
| `Config.InventoryResource` | string | `'auto'`    | Which inventory to use for item images. Set to `'auto'` to detect automatically, or one of: `'qb-inventory'`, `'ox_inventory'`, `'ps-inventory'`, `'codem-inventory'`, `'origen_inventory'`. |
| `Config.TargetResource`    | string | `'auto'`    | Which target resource to use for NPC interactions. Set to `'auto'` to detect automatically, or one of: `'qb-target'`, `'ox_target'`.                                                         |

## Item Image Paths

`Config.ItemImagePaths` is a table mapping each supported inventory resource to its web image folder. The item name and `.png` extension are appended automatically by the NUI. You only need to edit this if your inventory uses a non-standard path.

```lua
Config.ItemImagePaths = {
  ['ox_inventory'] = 'nui://ox_inventory/web/images/',
  ['ps-inventory'] = 'nui://ps-inventory/html/images/items/',
  ['codem-inventory'] = 'nui://codem-inventory/html/images/',
  ['origen_inventory'] = 'nui://origen_inventory/html/imgs/items/',
  ['qb-inventory'] = 'nui://qb-inventory/html/images/',
}
```

`Config.ItemImageFallback` is used when the detected inventory is not listed in the table above.

## Payment Settings

| Key                     | Type    | Default  | Description                                                                                                                             |
| ----------------------- | ------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `Config.UseManagement`  | boolean | `false`  | When `true`, revenue from sales goes into the job boss management fund table. When `false`, it goes directly to the store owner's cash. |
| `Config.PaymentAccount` | string  | `'cash'` | The money account players pay from when buying items. Accepted values: `'cash'` or `'bank'`.                                            |

## Auto-Sell Markup

`Config.AutoSellMarkup` controls how much the store owner can mark up items above their base price.

| Key       | Type   | Default | Description                                                            |
| --------- | ------ | ------- | ---------------------------------------------------------------------- |
| `min`     | number | `10`    | Minimum percentage above base price the owner can set                  |
| `max`     | number | `200`   | Maximum percentage above base price the owner can set                  |
| `default` | number | `50`    | Markup applied automatically when the owner has not set a custom price |

## Global Order Settings

| Key                        | Type   | Default | Description                                                                                                                                                      |
| -------------------------- | ------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Config.MaxItemsSelection` | number | `5`     | Global fallback for the maximum number of different item types a player can include in one order. Can be overridden per-store with the `maxItemsPerOrder` field. |
| `Config.Cooldown`          | number | `10`    | Cooldown in minutes between weapon orders per player. Applies to all stores.                                                                                     |


---

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