# Installation

## ⚙️ Installation

Follow these steps carefully to get the script running on your server.

***

### Step 1 — Add the Resource

Place the `moh-gangwar` folder inside your server's `resources` directory.

```
📁 resources/
  └── 📁 moh-gangwar/
        ├── fxmanifest.lua
        ├── config.lua
        ├── schema.sql
        ├── client.lua
        ├── server.lua
        └── 📁 html/
              ├── index.html
              ├── style.css
              └── script.js
```

***

### Step 2 — Ensure in server.cfg

Open your `server.cfg` and add:

```
ensure moh-gangwar
```

> ⚠️ Make sure it loads **after** `qb-core` and your MySQL resource.

***

### Step 3 — Import the Database

Import `schema.sql` into your database. This creates 2 tables:

* `banned_players_arena`
* `arena_gang_blacklist`

You can import it using:

* **phpMyAdmin** → Import tab → select `schema.sql`
* **HeidiSQL** → File → Run SQL file
* **Terminal:**

```bash
mysql -u root -p your_database < schema.sql
```

***

### Step 4 — Configure the Script

Open `config.lua` and set your values (see Configuration for full details).

At minimum, set:

* `WarZoneCenter` — center coordinates of your arena
* `LobbyCoords` — where players spawn when they join
* `SpawnPoints` — list of in-arena spawn positions

***

### Step 5 — Start the Server

Restart your server or use:

```
refresh
ensure moh-gangwar
```

✅ You're ready! Use `/arenaadminui` in-game to open the admin panel.


---

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