> For the complete documentation index, see [llms.txt](https://fragmentdevelopment.gitbook.io/fivem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fragmentdevelopment.gitbook.io/fivem/paid-scripts/punishment/installation.md). Agents can also search and read this documentation through its [MCP server](https://fragmentdevelopment.gitbook.io/fivem/~gitbook/mcp).

# Installation

A custom-designed, elegant, and precise FiveM server script to punishment your players.

***

## Compatibility

* ESX
* QBCore
* QBOX

***

## Installation

{% stepper %}
{% step %}

### Step 1 - Download

1. Download our resource from your keymaster: <https://portal.cfx.re/>
2. Place the folder in your server's resource folder.
3. Add the resource to your server start config (server.cfg). Make sure `fm-punishment` is listed below your framework resource e.g., es\_extended, not above it.
   {% endstep %}

{% step %}

### Step 2 - Configuration (OPTIONAL)

You **must** read all configurable options inside `[fm-punishment/shared/settings.lua]` and adjust them to fit your server's needs. Please pay attention to the commented texts at the end or above of each line to understand the purpose of each config option.

1. Framework. By default, it is set to 'auto' to auto-detect whether you're using ESX, QBCore or QBOX.
2. Database. By default, auto sql is set to true, meaning you don't need to run SQL queries manually.
   {% endstep %}
   {% endstepper %}
