> For the complete documentation index, see [llms.txt](https://tefox-scripts.gitbook.io/tefox-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tefox-scripts.gitbook.io/tefox-scripts-docs/tefox-scripts-documentation/tefox_deliveryjob/configuration.md). Agents can also search and read this documentation through its [MCP server](https://tefox-scripts.gitbook.io/tefox-scripts-docs/~gitbook/mcp).

# Configuration

The config.lua file is your server's total control panel. We have designed this file to be straightforward, intuitive, and developer-friendly, allowing you to tailor every detail of the script to match your server's unique framework and economy without touching the complex logic code.

Here is a detailed breakdown of the most important sections to help you customize the experience.

#### 1. Core Framework Setup

This option allows you to define the base framework your server runs on (QBCore, ESX Legacy, or qbox).

```lua
-- Options: 'auto', 'qbcore', 'qbox', 'esx'
Config.Framework = 'auto'
```

<mark style="color:$info;">Recommendation:</mark> We highly recommend leaving this setting as <mark style="color:green;">'auto'.</mark>

## <mark style="color:red;">2. Interaction System (Target)</mark>

Here you can choose how players interact with the Delivery Manager (NPC) to start work.

```lua
-- Options: 'ox_target', 'qb-target', 'qtarget', 'drawtext' 
Config.TargetSystem = 'drawtext'
```

<mark style="color:$info;">The Options:</mark> Set it to a target option (e.g., ox\_target) for modern interaction (Alt-Eye).

Set it to <mark style="color:green;">'drawtext'</mark> to use the classic 3D text floating above the NPC, where the player presses \[E] to interact.

## <mark style="color:red;">3. Missions & Economy Customization</mark>

This is the heart of the script! You have complete freedom to create your own delivery contracts and scale the difficulty and rewards.

```lua
    [1] = {
        name = "Urban Package", 
        levelRequired = 1, -- The level required to unlock
        vehicleModel = "speedo4", -- The truck spawned for the job
        pickupPoint = vector4(-439.83, -2796.15, 7.3, 47.15), -- Box Loading Area
        boxesNeeded = 2, -- Total boxes required to load
        dropoffs = { -- Endless delivery locations
            vector4(-41.25, -1751.34, 29.42, 49.93),
            vector4(26.0, -1338.96, 29.5, 357.19),
            -- Add as many coords as you want...
        },
        reward = 7500, -- Cash payout (Shared evenly)
        xpReward = 150, -- XP gain for leveling up
    },
```

<mark style="color:$info;">**What you can change here:**</mark>

<mark style="color:green;">Difficulty:</mark> Increase boxesNeeded to force players to make more trips back and forth.

<mark style="color:green;">Economy & Balancing:</mark> Adjust the cash reward and xpReward to align perfectly with your server’s economy.

<mark style="color:green;">Level Progression:</mark> Change the levelRequired to control how fast players unlock new specialized jobs.

<mark style="color:green;">Locations:</mark> Add, remove, or change any coordinates in pickupPoint and dropoffs to create entirely new routes across the map.

## <mark style="color:red;">4. XP & Levels Progression System</mark>

From this section, you define the TOTAL amount of Experience (XP) a driver needs to achieve each new level.

```lua
Config.Levels = {
    [1] = 1200,   -- XP required to reach Level 1
    [2] = 3000,   -- XP required to reach Level 2
    [3] = 4500,   -- XP required to reach Level 3
}
```

**The Strategy:** You can increase these numbers to make "Leveling up" slower and more prestigious, or decrease them for faster progression. You can also add infinite new levels by following the pattern (e.g., adding \[21] = 150000).

<mark style="color:green;">**🛠️ Developer Tip:**</mark> The configuration is automatically synced across the network. If you change a value while the server is running, the script will instantly adapt to your changes.
