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

# Main Config

**File:** `config.lua`\
**Resource:** devix-inventory

## What it does

Main inventory behaviour: locale, debug, NUI preferences, webhooks, grid UI, keybinds, vehicle storage, inventory sizes, player search, bags, drops, clothing, shops, and related gameplay toggles.

## Important options

| Option                              | Description                                                                       |
| ----------------------------------- | --------------------------------------------------------------------------------- |
| `Config.DefaultLocale`              | Default UI language key from `Locales/locales.lua` (e.g. `"en"`, `"tr"`).         |
| `Config.Mysql`                      | MySQL driver: `"oxmysql"` \| `"mysql-async"` \| `"ghmattimysql"`.                 |
| `Config.Debug`                      | Master debug flag (most verbose logs stay behind specific `Config.Debug*` keys).  |
| `Config.InventoryPlayerPreferences` | NUI settings defaults, lock gear, per-row `playerCanChange`.                      |
| `Config.Webhooks`                   | Discord webhook URLs per action (transfer, purchase, drop, give, …). Empty = off. |
| `Config.GridUI`                     | Grid UI colours / layout helpers.                                                 |
| `Config.Keybinds`                   | Open inventory, quickslots, eat/drink, etc.                                       |
| `Config.VehicleInventory`           | Trunk / glovebox sizes and rules.                                                 |
| `Config.Inventories`                | Named inventory definitions (player, stash defaults, crafting grid size, …).      |
| `Config.SearchPlayer`               | Hands-up, weapon, distance, ACE for searching players.                            |
| `Config.ItemInventories`            | Bag / container item → inner inventory size.                                      |
| `Config.MaxItemAmount`              | Max stack amount.                                                                 |
| `Config.DurabilityItems`            | Items that use durability decay.                                                  |
| `Config.ItemRarity`                 | Rarity colours / tiers for UI.                                                    |
| `Config.InventoryCamera`            | Inventory camera on/off default.                                                  |
| `Config.ProgressBar*`               | Move/transfer progress bar options.                                               |
| `Config.HungerThirst`               | Framework hunger/thirst hooks for food.                                           |
| `Config.GiveTargetMaxDistance`      | Max distance for give-to-player.                                                  |
| `Config.GiveItemAnim`               | Give/receive animation after successful give.                                     |

## Example

```lua
Config.DefaultLocale = "en"
Config.Mysql = "oxmysql"
Config.Keybinds = {
    OpenInventory = "TAB",
    -- ...
}
```

## See also

* [Performance Config](/devix/devix-inventory/inventory-config/performance-config.md) — spam / refresh (loaded after this file)
* [Items Config](/devix/devix-inventory/inventory-config/items-config.md) — item list
* [Weapon Config](/devix/devix-inventory/inventory-config/weapon-config.md) — weapon behaviour


---

# 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 dynamically by asking a question.

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

```
GET https://devix.gitbook.io/devix/devix-inventory/inventory-config/main-config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
