# Configuration

## Configuration

All settings are in config.lua.

### Framework

```
Config.Framework = 'auto'
```

| Value  | Description                          |
| ------ | ------------------------------------ |
| auto   | Automatically detects your framework |
| esx    | Force ESX                            |
| qbcore | Force QBCore                         |
| qbox   | Force QBox                           |

### Language

```
Config.Locale = 'tr'
```

Available: tr, en, de, fr, es

### Airdrop Settings

```
Config.Airdrop = {
    SpawnHeight = 425.0,
    ParachuteDuration = 35.0,
    DespawnTime = 300,
    CooldownTime = 600,
    MinPlayers = 1,
    MaxActiveDrops = 3,
    InteractionDistance = 2.5,
    LootTime = 8000,
    CrateProp = 'prop_mil_crate_01',
    TargetSystem = 'auto',
}
```

| Setting             | Description                                 |
| ------------------- | ------------------------------------------- |
| SpawnHeight         | Height above ground where crate spawns      |
| ParachuteDuration   | Fall duration in seconds                    |
| DespawnTime         | Seconds before unclaimed crate disappears   |
| CooldownTime        | Global cooldown between airdrops in seconds |
| MinPlayers          | Minimum online players required             |
| MaxActiveDrops      | Maximum simultaneous airdrops               |
| InteractionDistance | Distance to interact with crate             |
| LootTime            | Time to open crate in milliseconds          |
| CrateProp           | GTA V prop model name                       |
| TargetSystem        | auto, ox\_target or qb-target               |

### Parachute Offset

```
ParachuteOffset = {
    x = 0.0,
    y = 0.0,
    z = 3.8,
    rotX = 0.0,
    rotY = 0.0,
    rotZ = 0.0,
}
```

Use /propeditor in-game to adjust these values visually.

### Smoke Settings

```
SmokeColors = {
    { r = 255, g = 50,  b = 50  },
    { r = 50,  g = 150, b = 255 },
    { r = 50,  g = 255, b = 100 },
    { r = 255, g = 200, b = 50  },
    { r = 200, g = 50,  b = 255 },
}
SmokeDuration = 120
FlareEnabled = true
FlareInterval = 5000
```

You can add or remove colors. Each color creates a separate smoke source around the crate.

### Blip Settings

```
Config.Blip = {
    Sprite = 306,
    Color = 1,
    Scale = 0.9,
    Name = 'Airdrop',
    Flash = true,
    FlashInterval = 500,
}
```

### Spawn Locations

```
Config.SpawnLocations = {
    vector3(221.73, -795.85, 30.73),
    vector3(-1037.0, -2738.0, 13.86),
}
```

Add or remove coordinates. A random location is picked each time.

### Auto Drop

```
Config.AutoDrop = {
    Enabled = false,
    Interval = 1800,
    RandomInterval = true,
    MinInterval = 1200,
    MaxInterval = 3600,
}
```

When enabled, airdrops spawn automatically at set intervals.

### Anti-Cheat

```
Config.AntiCheat = {
    Enabled = true,
    MaxDistanceCheck = 5.0,
    CooldownPerPlayer = 30,
    VehicleCheck = true,
}
```

| Setting           | Description                     |
| ----------------- | ------------------------------- |
| MaxDistanceCheck  | Max distance from crate to loot |
| CooldownPerPlayer | Per-player cooldown in seconds  |
| VehicleCheck      | Prevent looting from vehicle    |

### Discord Webhook

```
Config.Discord = {
    Enabled = true,
    Webhook = 'YOUR_WEBHOOK_URL',
    BotName = 'Elena Airdrop',
    LogTypes = {
        spawn = true,
        loot = true,
        despawn = true,
        anticheat = true,
        admin = true,
    }
}
```

### Panel Refresh

```
Config.PanelRefreshInterval = 3000
```

Admin panel stats update interval in milliseconds.

### Cinematic Camera

```
Config.CinematicCam = {
    Enabled = true,
    Duration = 12000,
    Distance = 25.0,
    Height = 15.0,
    RotationSpeed = 0.3,
}
```


---

# 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/core-systems/airdrop/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.
