> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/xdiskjockey/installation/qbcore.md).

# QBCore

***

## server.cfg

Make sure the resource starts after qbcore

* oxmysql/any mysql
* qbcore
* xdiskjockey

## Database

The resource import all SQL files on its own there is no need to worry about inserting some tables

## Framework

Setting QBCore Framework in config.lua

Look for `Config.Framework`

{% code overflow="wrap" lineNumbers="true" %}

```lua
Config.Framework = {
    -- 0 = standalone
    -- 1 = esx
    -- 2 = qbcore
    Active = 0,

    -- esx
    ESX_SHARED_OBJECT = "esx:getSharedObject",

    -- es_extended resource name
    ES_EXTENDED_NAME = "es_extended",

    -------
    -- qbcore
    QBCORE_SHARED_OBJECT = "QBCore:GetObject",

    -- qb-core resource name
    QB_CORE_NAME = "qb-core",

    -- will not detect any supported framework if on true.
    DisableDetection = false,
}
```

{% endcode %}

in here we're going to change the `Active = 0,` to `Active = 2,`

The final code will look like this

{% code overflow="wrap" lineNumbers="true" %}

```lua
Config.Framework = {
    -- 0 = standalone
    -- 1 = esx
    -- 2 = qbcore
    Active = 2,

    -- esx
    ESX_SHARED_OBJECT = "esx:getSharedObject",

    -- es_extended resource name
    ES_EXTENDED_NAME = "es_extended",

    -------
    -- qbcore
    QBCORE_SHARED_OBJECT = "QBCore:GetObject",

    -- qb-core resource name
    QB_CORE_NAME = "qb-core",

    -- will not detect any supported framework if on true.
    DisableDetection = false,
}
```

{% endcode %}
