> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rmz.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Download, configure, and start the RMZ FiveM resource on your game server.

## Installation Steps

**1. Download the resource**

Choose one of the following methods:

**Option A -- Git clone:**

```bash theme={null}
cd resources
git clone https://github.com/Rmz-App/rmz-fivem.git rmz-fivem
```

**Option B -- Download ZIP:**

1. Go to [github.com/Rmz-App/rmz-fivem](https://github.com/Rmz-App/rmz-fivem)
2. Click the green **Code** button and select **Download ZIP**
3. Extract the folder into your server's `resources/` directory
4. Rename the folder to `rmz-fivem` if needed

**2. Get your secret key**

1. Go to your [RMZ dashboard](https://app.rmz.gg)
2. Navigate to **Benefits** > **FiveM Servers**
3. Click **Add Server**
4. Copy the generated secret key

**3. Configure config.lua**

Open `config.lua` in the resource folder and set your secret key:

```lua theme={null}
Config.SecretKey = 'rmz_fivem_YOUR_SECRET_KEY_HERE'
```

See [Configuration](https://docs.rmz.gg/fivem/configuration.md) for all available settings.

**4. Add to server.cfg**

Add the following line to your `server.cfg`:

```
ensure rmz-fivem
```

**5. Restart your server**

Restart the server (or run `restart rmz-fivem` in the console). You should see the following output in your server console:

```
[RMZ] =============================================
[RMZ]  RMZ FiveM Integration v1.0.0
[RMZ]  Poll interval: 10s
[RMZ]  Debug: false
[RMZ]  Notifications: true
[RMZ] =============================================
```

If you see this output, the resource is running and polling for commands.

## Verify the Connection

After starting the resource, check the **FiveM Servers** page in your RMZ dashboard:

* **Connected** (green) -- the resource is polling successfully
* **Disconnected** (grey) -- no poll received in the last 2 minutes

> [!WARNING]
>
> Never share your secret key or commit your modified `config.lua` to a public repository. Add it to your `.gitignore` file.

## Next Steps

> [card] [Configuration](https://docs.rmz.gg/fivem/configuration.md)
>
> Adjust poll interval, debug mode, and notifications

> [card] [Product Setup](https://docs.rmz.gg/fivem/product-setup.md)
>
> Create products with FiveM commands


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.