# moh-zone — Installation

Step-by-step guide to install and start the Red Zone PvP resource.

### Step 1 — Download and Place

Place the resource folder in your `resources/` directory and name it exactly `moh-zone`.

### Step 2 — Add to server.cfg

Add the following line after qb-core, oxmysql, and PolyZone:

```
ensure moh-zone
```

### Step 3 — Create the Database Table

Run this SQL once in your database. You can also skip this step if `Config.DBTable` is set correctly — the resource will create the table automatically on first start.

```
CREATE TABLE IF NOT EXISTS `player_coins` (
  `citizenid`   varchar(50)  NOT NULL,
  `coins`       int(11)      NOT NULL DEFAULT 0,
  `total_kills` int(11)      NOT NULL DEFAULT 0,
  PRIMARY KEY (`citizenid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
```

### Step 4 — Configure

Open `config.lua` and set:

* Your zone coordinates and radius
* Your ambulance script name
* Your admin license identifiers
* Your notification style

See the Configuration pages for full details on every option.

### Step 5 — Start and Test

Restart the resource. If you see this in the console, the database is ready:

```
[RedZone] Table `player_coins` is ready.
```

Then in-game, run `/startzone` as an admin to activate the zone.

> **Tip:** If moh-shop is also installed, make sure both configs point to the same table name (`player_coins` by default).


---

# 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-redzone/moh-zone-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.
