> For the complete documentation index, see [llms.txt](https://gocomedyfunstoredocs.gitbook.io/gocomedyfun-store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gocomedyfunstoredocs.gitbook.io/gocomedyfun-store/scripts-free/dj-fun/english/configuration/framework.md).

# Framework

### <sup>Framework Configuration with</sup>&#x20;

The `Config.Framework` parameter tells the script which framework you're using (ESX, QBCore, or Qbox), so it can work properly with your server's environment.

***

#### <sup>Example Configuration</sup>

```lua
Config.Framework = 'EXAMPLE'
```

***

#### Steps to Configure `Config.Framework`

1️⃣ **Locate the parameter**\
In your `config.lua` file, find the following line:

```lua
Config.Framework =
```

2️⃣ **Understand the value**\
This value should match the name of your framework:

* `'esx'` → For a server based on **ESX**
* `'qbcore'` → For a server based on **QBCore**
* `'qbox'` → For a server based on **Qbox**

3️⃣ **Adjust based on your server**

* If you're using **ESX Legacy** or **ox\_core** → set it to `'esx'`
* If you're using **official QBCore** → set it to `'qbcore'`
* If you're using **Qbox** (a modern QBCore fork) → set it to `'qbox'`

4️⃣ **Save and restart**\
After modifying and saving `config.lua`, restart the resource:

```bash
restart dj_fun
```

5️⃣ **Test in-game**\
Start your server and make sure the script's interactions, menus, or features work correctly based on your chosen framework.

***

#### <sup>Summary</sup>

`Config.Framework` helps the script adapt to your server setup:

* Choose `'esx'`, `'qbcore'`, or `'qbox'` depending on your framework
* Ensures full compatibility with the native functions of your environment
