> 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-core/config/main-config.md).

# Main Config

File: `shared/config.lua`\
Resource: devix-core

## What it does

Core framework bridge settings: auto framework detect, MySQL, cash-as-item, usable-item key normalize, admin ACE/licenses, Devix UI overlay options, and optional restart dependencies.

## Framework

| Option                     | Type   | Description                                                                                                    |
| -------------------------- | ------ | -------------------------------------------------------------------------------------------------------------- |
| `Config.FrameworkOverride` | string | Force framework: `"qb"` \| `"oldqb"` \| `"qbox"` \| `"esx"` \| `"oldesx"` \| `"ox"`. Empty `""` = auto-detect. |
| `Config.Framework`         | string | Resolved framework name (set automatically; server waits briefly so `qbx_core` can start).                     |

**Auto-detect order:** `qbx_core` → `qb-core` → `es_extended` → `ox_core` → fallback `"qb"`.

```lua
Config.FrameworkOverride = ""      -- auto
-- Config.FrameworkOverride = "qbox"
```

## Core / MySQL

| Option                            | Type    | Description                                                                        |
| --------------------------------- | ------- | ---------------------------------------------------------------------------------- |
| `Config.Mysql`                    | string  | `"oxmysql"` \| `"mysql-async"` \| `"ghmattimysql"`.                                |
| `Config.CoreName`                 | string  | Resource display name (default `"devix-core"`).                                    |
| `Config.CoreVersion`              | string  | Version string for logs.                                                           |
| `Config.Debug`                    | boolean | Enables `DEVIX.debug(...)` and some money-hook logs.                               |
| `Config.NormalizeUseableItemKeys` | boolean | Lowercase usable-item keys when registering (helps third-party + devix-inventory). |
| `Config.RestartDependencies`      | table   | Resource names to restart when devix-core starts (e.g. `"devix-inventory"`).       |

## Cash as item

| Option                                 | Type    | Description                                                                      |
| -------------------------------------- | ------- | -------------------------------------------------------------------------------- |
| `Config.CashAsItem`                    | boolean | `"cash"` money uses inventory item via **devix-inventory**.                      |
| `Config.CashItemName`                  | string  | Cash item name (must exist in ItemList).                                         |
| `Config.CashSyncDebug`                 | boolean | Log cash sync previous/next values.                                              |
| `Config.CashAsItemDbReconcileInterval` | number  | QB: reconcile DB `money.cash` with inventory for online players (ms). `0` = off. |

```lua
Config.CashAsItem = true
Config.CashItemName = "cash"
```

## Permissions

`DEVIX.HasPermission(source)` checks, in order:

1. `Config.AuthorizedAces` — `IsPlayerAceAllowed` (e.g. `"group.admin"`)
2. `Config.AuthorizedLicenses` — `license:xxxx` whitelist

```lua
Config.AuthorizedAces = { "group.admin" }
Config.AuthorizedLicenses = {
    "license:yourlicensehere",
}
```

## Devix UI (`Config.DevixUI`)

| Option           | Description                                                              |
| ---------------- | ------------------------------------------------------------------------ |
| `NotifyDuration` | Default toast duration (ms).                                             |
| `NotifyMax`      | Max stacked toasts.                                                      |
| `GlassBlur`      | Glass blur strength.                                                     |
| `KeepAliveMs`    | Auto-hide window for prompt/keybinds (must be **>** your loop `Wait()`). |

Full usage: [DEVIX UI](/devix/devix-core/user-interface.md).

## See also

* [Providers Config](/devix/devix-core/config/providers-config.md)
* [Integrations](/devix/devix-core/integrations.md)


---

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