# Installation

Follow these steps to install **moh-stoptroll** on your FiveM server.

***

### Step 1 — Download & Place Files

Place the `moh-stoptroll` folder inside your server's `resources` directory:

```
server/
└── resources/
    └── moh-stoptroll/
        ├── fxmanifest.lua
        ├── config.lua
        ├── client.lua
        ├── client_ui.lua
        ├── server.lua
        ├── server_ui.lua
        └── web/
            ├── index.html
            ├── styles.css
            ├── app.js
            └── logo.png
```

***

### Step 2 — Run the SQL

Import the SQL tables into your database. See the SQL Database page for the full queries.

You can run the SQL via:

* **phpMyAdmin** — paste into the SQL tab and execute
* **HeidiSQL / DBeaver** — open a query window and run
* **MySQL CLI**: `mysql -u root -p your_database < stopfire_tables.sql`

***

### Step 3 — Configure the Resource

Open `config.lua` and set up:

1. `Config.CoreName` — your QBCore export name
2. `Config.AllowedGroups` — which staff groups can use Stopfire
3. `Config.AllowedLicenses` — specific license whitelists (optional)
4. `Config.ServiceLocation` — where community service takes place
5. All other settings

***

### Step 4 — Add to server.cfg

Add the resource to your `server.cfg`. Make sure `mysql-async` and `qb-core` are **above** it:

```
ensure qb-core
ensure mysql-async
ensure qb-clothing

ensure moh-stoptroll
```

***

### Step 5 — Restart / Start

Start the resource:

```
refresh
start moh-stoptroll
```

Or simply restart your server.

***

### Verify Installation

In the server console you should see no errors. Connect as a player with the correct permissions and run:

```
/stoptroll
```

***

> **Next step →** SQL Database


---

# 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/installation.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.
