# Configuration

## 🔧 Configuration

All settings are inside `config.lua`. Below is a full explanation of every option.

***

### 📍 Coordinates

```lua
Config.WarZoneCenter = vector3(x, y, z)        -- Center of the arena/war zone
Config.LobbyCoords   = vector4(x, y, z, heading) -- Where players wait before fight
Config.SpawnPoints   = {                         -- In-arena spawn positions
    vector3(x1, y1, z1),
    vector3(x2, y2, z2),
    -- add as many as needed
}
```

***

### 🔫 Weapon

```lua
Config.Weapon = {
    hash = "WEAPON_ASSAULTRIFLE",  -- Any valid weapon hash
    ammo = 250,                    -- Starting ammo amount
}
```

> All arena players receive this weapon when the fight begins and it is removed when the fight ends.

***

### 🗺️ Zone

```lua
Config.Zone = {
    radius        = 150.0,  -- Outer (red) zone radius in meters
    safeRatio     = 0.6,    -- Safe zone = radius x safeRatio (e.g. 0.6 = 60%)
    damage        = 5,      -- HP damage per tick outside safe zone
    interval      = 5000,   -- Damage tick interval in milliseconds
    minSafeRadius = 20.0,   -- Minimum safe radius before full red
}
```

***

### 🎁 Rewards

```lua
Config.Rewards = {
    enabled = true,
    type    = "money",   -- "money" | "item" | "health" | "armor"
    amount  = 500,       -- Amount (money) or value (health/armor)
    item    = "bread",   -- Item name (only used if type = "item")
}
```

***

### 🗄️ Database

```lua
Config.DB = {
    mode               = "auto",                 -- auto-detects oxmysql or mysql-async
    tableBans          = "banned_players_arena",
    tableGangBlacklist = "arena_gang_blacklist",
}
```

***

### 🧑‍⚖️ Admin Permissions

```lua
Config.AdminGroup    = "admin"          -- QBCore permission group
Config.AdminLicenses = {                -- Optional: whitelist by license
    "license:xxxxxxxxxxxxxxx",
}
```

***

### 💬 Messages

All notification messages are fully customizable in `config.lua` under `Config.Messages`. You can change every text the system sends to players.


---

# 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://mohssins.gitbook.io/mohscriptsdocs/moh-gangwar/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.
