# Configuration

The config.lua file is well-documented. Below is a detailed guide to key sections.

#### Framework Setup <a href="#user-content-framework-setup" id="user-content-framework-setup"></a>

Select your server framework.

```lua
Config.Framework = 'esx' -- Options: 'esx' or 'qbcore'
```

#### General Settings <a href="#user-content-general-settings" id="user-content-general-settings"></a>

Values like check intervals and command names.

```lua
Config.Debug = false            -- Set true to see detailed console logs
Config.Command = 'economy'      -- Command to open the menu
Config.CheckInterval = 60000    -- Auto-save interval (ms)
```

#### Admin Permissions <a href="#user-content-admin-permissions" id="user-content-admin-permissions"></a>

Define who can access the menu.

```lua
Config.AdminGroups = {
    ['admin'] = true,
    ['superadmin'] = true,
    -- Add custom groups here
}
```

#### Vehicle Check <a href="#user-content-vehicle-check" id="user-content-vehicle-check"></a>

Configure how the script looks for money in vehicles.

```lua
Config.VehicleCheck = {
    Enabled = true,
    
    -- System: 'ox_inventory', 'qs-inventory', 'esx_default', 'qb-inventory'
    InventorySystem = 'ox_inventory',
    
    -- Items to count as money (case-insensitive)
    MoneyItems = { 'money', 'cash', 'black_money', 'markedbills' }
}
```

**Note:** For `ox_inventory` providing legacy data support, the script automatically checks both the `ox_inventory` table and legacy `owned_vehicles` columns (`trunk`/`glovebox`).

#### Crypto Check <a href="#user-content-crypto-check" id="user-content-crypto-check"></a>

Configure `lb-phone` integration.

```lua
Config.CryptoCheck = {
    Enabled = true,
    Table = 'phone_crypto',     -- Database table
    Columns = {
        identifier = 'id',      -- User ID column (e.g. char1:license...)
        invested = 'invested'   -- Column summing total spent
    }
}
```


---

# 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://imperiumscripts.gitbook.io/imperium-scripts/scripts/imperium-money-check/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.
