# Requirements

### Server Framework

| Requirement      | Version                           |
| ---------------- | --------------------------------- |
| FiveM server     | Latest recommended                |
| QBCore Framework | Any recent stable version         |
| Lua runtime      | `lua54` (already set in manifest) |

***

### Required Resources

These resources **must be started before** `moh-stoptroll`:

#### 1. `mysql-async`

Used for all database operations (saving/loading sentences).

* Download: <https://github.com/brouznouf/fivem-mysql-async>
* Must be listed in `server.cfg` **above** `moh-stoptroll`

#### 2. `qb-core`

The core framework. Make sure `Config.CoreName` matches your export name (default: `'qb-core'`).

#### 3. `qb-clothing`

Required for applying the prisoner outfit when a player enters Community Service.

* The resource must fire the event: `qb-clothing:client:loadOutfit`
* Also used on release: `qb-clothes:loadPlayerSkin`

***

### MySQL Database

You need a working MySQL/MariaDB database connected to your FiveM server via the `mysql-async` connection string in `server.cfg`:

```
set mysql_connection_string "mysql://user:password@localhost/database_name"
```

***

### Permissions

You need at least one of the following set up to access the staff panel:

* A **QBCore group** (e.g. `admin`, `mod`, `god`) listed in `Config.AllowedGroups`
* Or a **player license** listed in `Config.AllowedLicenses`

***


---

# 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-stoptroll/requirements.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.
