> 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/installation.md). Agents can also search and read this documentation through its [MCP server](https://tefox-scripts.gitbook.io/tefox-scripts-docs/~gitbook/mcp).

# Installation

#### 🔧 Installation:

1. Place <mark style="color:yellow;">`tefox_adminjail`</mark> in your resources folder. **Keep the folder name.**
2. Add it to your `server.cfg` **after** oxmysql, your framework and your target system:

```
ensure oxmysql
ensure qb-core
ensure qb-target
ensure tefox_adminjail
```

3. Open <mark style="color:yellow;">`config.lua`</mark> and set your admins, jail location and Discord webhooks.
4. Restart your server. The database tables are created automatically, **no SQL import needed**.
5. Open the admin panel in-game with `/jailmenu`.

***

#### 🔄 Updating from 1.0.x:

1. Back up your old <mark style="color:yellow;">`config.lua`</mark>.
2. Delete the old <mark style="color:yellow;">`tefox_adminjail`</mark> folder **completely**.
3. Install the new version and copy your admins and webhook into the **new** `config.lua`.
4. Restart your server.

{% hint style="warning" %}
The config format has changed. **Do not reuse your old `config.lua`.**
{% endhint %}

***

#### 📂 Open Files:

These files are not encrypted, so you can edit them freely:

* <mark style="color:yellow;">`config.lua`</mark>
* <mark style="color:yellow;">`locales/*.lua`</mark>
* <mark style="color:yellow;">`bridge/target.lua`</mark> (add support for another target system)

***
