# FiveM Server Integration

A prerequisite for all of our fivem integrated features is to connect your server to our discord bot, a simple process taking less than 5 minutes. To get full access to our player-functionalities, which includes   the FiveM Ticket Integration, you will also need to configure the security string which will be explained further below.

{% hint style="info" %}
If you are struggling to setup the integration, please reach out to our support team. We are more than happy to help you throughout the process. [discord.gg/elyxir](https://discord.gg/elyxir)
{% endhint %}

If you need to connect the bot to the same FiveM server in multiple discord servers, please contact us as we will need to configure this for you ourselves.

### Step 1: Updating sv\_requestParanoia ConVar

Before beginning the process, it is required for you to remove the `sv_requestParanoia`  ConVar from your FiveM Server configuration. This configuration variable blocks traffic routed to the endpoints of your server required for this functionality. If you do not have the ConVar set in your configuration, you may proceed to the next step.

{% hint style="info" %}
Many older servers may remember using the `sv_requestParanoia` convar to block access to the required endpoints as it previously exposed all player identifiers to the public. However, in recent builds FiveM has recognised this potential vulnerability, and will now only include this data if the request is authenticated.
{% endhint %}

### Step 2: Running the Connection Command

To connect your server to our bot, you need to run the `/branding fivem` command, specifying your server ip in the required argument. This is most likely the ip address which you use to remote connect to your server, and should look something like this: `81.45.132.23` .

If the bot responds saying that we were unable to reach your server, we would recommend contacting our support team to troubleshoot this together. There are a number of reasons which could cause this issue. [discord.gg/elyxir](https://discord.gg/elyxir)

### Step 3: Adding Security String ConVar

If the command has been run successfully, you should be provided with a key which you need to add to your ConVars. It will look something like this: `sv_playersToken afja9k3525302530l02` . This is required so that we can access the player identifiers (such as their discord id) to support features such as the ticket integration, without exposing this data for everyone to see.

<figure><img src="/files/pQbGRkqbIoqRqfHuGnDO" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
You should not publicly share this token, it exposes your player identifiers.&#x20;

⚠️**Warning:** Any individual with administrator permissions in your server will be able to view this security string variable.
{% endhint %}

### Success! (hopefully)

Once these steps have been followed, you should now have successfully connected your FiveM server to our bot. If you have reached an error, please reach out to our support team. We are happy to help. [discord.gg/elyxir](https://discord.gg/elyxir)


---

# 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.elyxir.dev/fivem-integration.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.
