> ## Documentation Index
> Fetch the complete documentation index at: https://zyra-store.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Complete reference for the Zyra Store config.lua file

> Adjust the framework, language, permission groups, and optional features of your Zyra Store scripts from a single file.

The `shared/config.lua` file is the central configuration point for all Zyra Store scripts. From here you can control the framework the script uses, the interface language, active dependencies, permission groups, and optional features. Any changes you make to this file apply to both the client and the server, as it is loaded in the shared context of the resource.

## Full annotated example

Below you will find a representative sample of the file with all its blocks documented:

```lua shared/config.lua theme={null}
Config = {}

-- ============================================
--  GENERAL CONFIGURATION
-- ============================================
Config.Framework   = 'esx'        -- 'esx' | 'qbcore' | 'standalone'
Config.Locale      = 'es'         -- language code (es, en, fr, de...)
Config.Debug       = false         -- enable debug logs in console

-- ============================================
--  DEPENDENCIES
-- ============================================
Config.UseOxLib    = true          -- use ox_lib for UI and notifications
Config.UseOxInv    = false         -- use ox_inventory as inventory
Config.UseOxMySQL  = true          -- use oxmysql for database

-- ============================================
--  PERMISSIONS
-- ============================================
Config.Permissions = {
    admin  = 'group.admin',        -- ACE group with administrator permissions
    mod    = 'group.mod',          -- ACE group with moderator permissions
    vip    = 'group.vip',          -- ACE group with VIP permissions
}

-- ============================================
--  FEATURES
-- ============================================
Config.Features = {
    notifications  = true,          -- enable on-screen notifications
    logs           = true,          -- enable action logs
    discord_logs   = false,         -- send logs to Discord (requires webhook)
    discord_webhook = '',           -- Discord webhook URL
}
```

## Options reference

The following table describes each key available in the configuration file:

| Key | Type | Default value | Description |
| - | - | - | - |
| `Config.Framework` | `string` | `'esx'` | Server framework. Accepted values: `'esx'`, `'qbcore'`, `'standalone'`. |
| `Config.Locale` | `string` | `'es'` | Language code used to load the corresponding localization file. |
| `Config.Debug` | `boolean` | `false` | When active, prints detailed debug messages in the server and client console. |
| `Config.UseOxLib` | `boolean` | `true` | Enables the use of [ox\_lib](https://github.com/overextended/ox_lib) for notifications, menus, and other interface utilities. |
| `Config.UseOxInv` | `boolean` | `false` | Activates integration with [ox\_inventory](https://github.com/overextended/ox_inventory) as the inventory system. |
| `Config.UseOxMySQL` | `boolean` | `true` | Uses [oxmysql](https://github.com/overextended/oxmysql) as the database connector. |
| `Config.Permissions.admin` | `string` | `'group.admin'` | Name of the ACE group that receives administrator privileges in the script. |
| `Config.Permissions.mod` | `string` | `'group.mod'` | Name of the ACE group that receives moderator privileges. |
| `Config.Permissions.vip` | `string` | `'group.vip'` | Name of the ACE group that unlocks special features for VIP players. |
| `Config.Features.notifications` | `boolean` | `true` | Shows on-screen notifications to the player when performing actions. |
| `Config.Features.logs` | `boolean` | `true` | Records relevant actions in the server console. |
| `Config.Features.discord_logs` | `boolean` | `false` | Sends action logs to a Discord channel through a webhook. Requires configuring `discord_webhook`. |
| `Config.Features.discord_webhook` | `string` | `''` | Full URL of the Discord webhook to which logs will be sent when `discord_logs` is active. |

## Advanced options

### Config.Debug

Enabling `Config.Debug = true` makes the script print detailed information about each processed event, database query, and client-to-server call. It is very useful during development or for diagnosing problems, but **should not be left active in production** as it may expose sensitive information in the console and reduce performance.

```lua theme={null}
Config.Debug = true  -- development environments only
```

### Config.Features.discord\_logs and webhook

To log player actions to Discord, enable `discord_logs` and provide a valid webhook URL:

```lua theme={null}
Config.Features = {
    discord_logs    = true,
    discord_webhook = 'https://discord.com/api/webhooks/XXXXXXXX/YYYYYYYY',
}
```

The logs will include the player name, their identifier, the action performed, and the timestamp. You can create a webhook from the settings of any text channel in your Discord server at **Edit channel → Integrations → Webhooks**.

> [!WARNING]
>
> **Never share your Discord webhook URL publicly.** Anyone with access to that URL can send messages to your channel. If you suspect it has been exposed, delete it from Discord and generate a new one, then update the value in `config.lua`.

> [!TIP]
>
> Before updating the script to a new version, always make a backup of your `shared/config.lua`. Updates may add new keys or change default values; comparing your copy with the new version of the file will allow you to migrate your configuration without losing any custom setting.

***

See also:

* [ACE permissions configuration](https://zyra-store.mintlify.site/en/configuration/permissions.md) — how to assign groups in `server.cfg` and map them in `config.lua`.
* [Localization and languages](https://zyra-store.mintlify.site/en/configuration/localization.md) — how to change the language and create custom translations.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.