# INSTALLATION

{% hint style="info" %}

### First of all, this bot is made for up-to-date versions of ESX and QB. If you have an older version, it may not work.

{% endhint %}

## Step 1

Invite the bot to your discord server. [Click here](https://discord.com/oauth2/authorize?client_id=1058429846805557330\&scope=bot\&permissions=1376805706816)

## Step 2

Install the `mx-discordtool` resource to your server. [Click here to download](https://github.com/MOXHARTZ/mx-discordtool/archive/refs/heads/main.zip)

## Step 3

Copy your discord server's id and paste it to the `mx-discordtool/server/config.lua guildId` variable.

{% hint style="info" %}
You don't know how to get your discord server's id? [Click here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-)
{% endhint %}

Step

## DONE&#x20;

You are awesome! Now you can use the bot.


---

# 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://docs.moxha.dev/documentation/free-scripts/fivem-manager-bot/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.
