> 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_adminjail/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

## Configuration

#### ⚙️ General:

```lua
Config.Framework = 'auto'   -- auto / esx / qb / qbox
Config.Locale = 'en'        -- see the language list below
Config.CheckUpdates = true
```

**Languages:** `en` `ar` `cs` `de` `es` `fr` `id` `it` `ja` `ko` `ms` `nl` `pl` `pt` `pt-br` `ro` `ru` `sr` `th` `tl` `tr` `zh-cn`

***

#### 👮 Admins:

Add the license or Discord ID of each admin:

```lua
Config.AllowedAdmins = {
    ["license:7bd2a61a2bf2108dc804590dd3d69ed54245653b"] = true,
    ["discord:332925566334556941"] = true
}
```

{% hint style="info" %}
Do not put a comma at the end of the last line.
{% endhint %}

***

#### ⛓️ Jail:

| Option                 | Description                                                                                         |
| ---------------------- | --------------------------------------------------------------------------------------------------- |
| `Config.JailCoords`    | Where players are sent when jailed                                                                  |
| `Config.JailMode`      | `'character'` = only the jailed character. `'player'` = every character of the same license         |
| `Config.JailTimeLimit` | Maximum minutes an admin can give (`0` = no limit)                                                  |
| `Config.ReleaseCoords` | `vector3(...)` to release everyone at one spot, or `false` to return players where they were jailed |

{% hint style="warning" %}
Choose your `JailMode` before using the script. Changing it later does not move existing sentences.
{% endhint %}

***

#### 🛡️ Protection:

```lua
Config.EscapeCheck = {
    Enabled = true,
    Distance = 150.0   -- Sends players back if they go further than this
}

Config.Restrictions = {
    Weapons = true,    -- Players can't take out or use weapons
    Melee = true       -- Players can't punch or fight
}

Config.AFK = {
    Enabled = false,
    Minutes = 10       -- Pauses the timer after this many minutes without moving
}
```

***

#### 🖥️ Admin Panel:

```lua
Config.Menu = {
    Command = 'jailmenu',
    Key = false        -- e.g. 'F7' to also open the panel with a key
}

Config.HistoryDays = 30  -- Days to keep history (0 = forever)
```

***

#### ⏱️ Timer:

```lua
Config.UI = {
    Position = 'center-right',
    Offset = { x = 24, y = 24 },
    AccentColor = '#ff7a1a',
    ReasonKey = 'K'
}
```

**Positions:** `top-center` `top-left` `top-right` `center-left` `center-right` `bottom-center` `bottom-left` `bottom-right`

{% hint style="info" %}
If you use `bottom-left`, raise `Offset.y` to about `260` so the timer stays above the minimap.
{% endhint %}

***

#### 📡 Discord Logs:

```lua
Config.Webhooks = {
    Jail = "",   -- Jail, unjail, time changes and sentence ended
    Tasks = ""   -- Completed tasks (leave empty to disable)
}

Config.Logs = {
    AutoRelease = true,
    TimeChanges = true,
    Tasks = true
}

Config.WebhookColor = 16711680
```

{% hint style="success" %}
We recommend two separate Discord channels, for example `#jail-logs` and `#jail-tasks`. Player licenses are hidden in the logs until clicked.
{% endhint %}

***

#### 🧹 Jail Tasks:

See the **Jail Tasks** page.

***
