# Configuration

All settings are in `config.lua`. No other file editing is needed.

```
Config.Locale = 'en'  -- 'en' = English, 'tr' = Turkish
```

To add a new language, copy the `['en']` block inside `Config.Locales`, rename it (e.g. `['de']`), translate all values, and set `Config.Locale = 'de'`.\
\
Key System

```
Config.KeySystem = 'qb-vehiclekeys'
```

Supported scripts:<br>

```
'qb-vehiclekeys'       QBCore Default
'renewed'              Renewed-Vehiclekeys
'wasabi'               Wasabi Carlock
'quasar'               Quasar (qs-vehiclekeys)
'jaksam'               Jaksam Vehicles
'codesign'             Codesign (cd_garage)
'okok'                 OKOK Garage
'esx_vehiclelock'      ESX Vehicle Lock
'none'                 No key script
```

To find your key script, type `list` in your server console and look for any resource containing "key", "lock", or "vehicle".\ <br>

#### Vehicle & Rental

```
Config.Vehicle = {
    model = "boxville2",
    spawnCoords = vector4(125.0, -3190.0, 7.0, 155.0),
    rental = {
        enabled = true,
        price = 250,
        refundOnFinish = true,
        refundAmount = 150
    }
}
```

<br>

#### NPC & Map Blip

```
Config.StartNPC = {
    coords = vector4(120.5, -3195.5, 7.0, 160.0),
    model = "s_m_m_armoured_01",
    label = "Cargo Boss",
    blip = {
        enabled = true,
        sprite = 67,
        color = 5,
        scale = 0.8,
        name = "Delivery Job HQ"
    }
}
```

#### Delivery Points

```
Config.DeliveryPoints = {
    [1] = { coords = vector3(X, Y, Z), label = "Name", pay = 200, xp = 35 },
}
```

10 pre-configured points included. Add, remove, or modify freely.

#### Level System

```
Config.Levels = {
    [1] = { title = "Rookie Courier",    requiredXP = 0,    bonusPay = 0  },
    [2] = { title = "Standard Courier",  requiredXP = 500,  bonusPay = 10 },
    [3] = { title = "Fast Courier",      requiredXP = 1500, bonusPay = 20 },
    [4] = { title = "Senior Courier",    requiredXP = 3000, bonusPay = 35 },
    [5] = { title = "Master Cargo",      requiredXP = 6000, bonusPay = 50 }
}
```

`bonusPay` is a percentage. Level 3 + $200 delivery = $240 payout.

#### Time & Damage

```
Config.TimeLimit = {
    enabled = true,
    timePerDelivery = 300,        -- 5 minutes
    speedBonus = {
        enabled = true,
        timeThreshold = 120,      -- Under 2 min
        bonusPercent = 15         -- +15% bonus
    }
}

Config.DamageSystem = {
    enabled = true,
    checkInterval = 2000,
    damagePenalty = {
        enabled = true,
        threshold = 700.0,        -- Below = penalty
        penaltyPercent = 25       -- -25% pay
    },
    totalFail = {
        enabled = true,
        destroyThreshold = 300.0  -- Below = job ends
    }
```

<br>


---

# 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://elena-scripts.gitbook.io/elenascripts/jobs-and-activities/delivery-job/configuration.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.
