# ESX

***

## server.cfg

Correct start up in server.cfg

* rcore\_fuel\_assets
* rcore\_fuel

## Database

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

## Framework

Setting ESX 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 = 1,`

The final code will look like this

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

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

    -- 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 %}

***

## Target system

You can configure what target system the resource will use

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

```lua
-- Target type
-- 0 = In build target system
-- 1 = Q_Target
-- 2 = BT Target
-- 3 = QB Target
-- 4 = OX Target
Config.TargetZoneType = 0
```

{% endcode %}

so lets say you want to use "ox\_target" simply change the code to look like this

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

```lua
Config.TargetZoneType = 4
```

{% endcode %}

***


---

# 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://documentation.rcore.cz/paid-resources/rcore_fuel/installation/esx.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.
