# Installation

{% code overflow="wrap" %}

```
In order to install the anticheat on your server you have to follow the next steps:
1. Make sure you run on game build 3095 or 3570 (Check Set your game build and artifacts for guidance)
2. Make sure you run on latest version of fivem artifacts (Check Set your game build and artifacts for guidance)
3. Download the anticheat resource from assets page from cfx.re portal (Check Information section for guidance and understanding how fivem resources are working)
4. Download last version of ox_lib resource (Check Dependencies section for guidance or download from https://github.com/overextended/ox_lib/releases/latest/download/ox_lib.zip)
5. Create an additional category folder for your anticheat resources, for example [ac]
6. Add the anticheat resource rac and its dependency ox_lib inside the category folder that you created
```

{% endcode %}

<figure><img src="/files/OodsYDmY88N6Tn22gpBz" alt=""><figcaption><p>Inside [ac] category folder</p></figcaption></figure>

{% hint style="danger" %}
Do not change the anticheat resource name. You have no reason to change it as even if the cheaters know your anticheat resource name, they are not able to do anything to it
{% endhint %}

{% code overflow="wrap" %}

```
7. Ensure the additional category folder for your anticheat resources that you create before as first in server.cfg (above your resources list)
```

{% endcode %}

{% code lineNumbers="true" %}

```bash
ensure [ac]
ensure [resources]
```

{% endcode %}

{% hint style="warning" %}
The resource will not start if you did not add the dependency ox\_lib or the server license does not belong to the account where you have the anticheat resource. In case the resource does not start because you use a server license from another account you will get the console print: You lack the entitlements required to use rac. In this situation you have to ensure that the anticheat resource and server license are on the same cfx.re portal account because the anticheat resource is encrypted with escrow system provided by FiveM. You should check the server console to see the messages if the anticheat does not start and fix the issue based on console messages
{% endhint %}

{% code overflow="wrap" %}

```
8. (Optional) Add the following server commands to your server.cfg file in order to add extra security to your server
```

{% endcode %}

```bash
sv_pureLevel 1 # disable citizen files
add_ace resource.rac command allow # add extra security for your server environment through Config.SafeGameEnvironment if it is set to true 
```

```
9. Anticheat configuration
```

<figure><img src="/files/hIu0qdQMAhRlPK2cYjUw" alt=""><figcaption><p>Inside rac resource config folder</p></figcaption></figure>

{% code overflow="wrap" %}

```
At the beginning, you should update only the following fields:
1. Set your Config.ScreenshotAPI (Fivemanage) (Check Configuration section for guidance)
2. Set your Config.DiscordServer (Check Configuration section for guidance)
3. Set your webhooks (Check Webhooks (logs) section for guidance)
4. Add users' identifiers to Config.AccessMenuIds for users that you want to use the anticheat menu (Check Configuration section for guidance)
5. Add users' identifiers to Config.WhitelistedIds for users that you want to be whitelisted for some anticheat detections (Check Configuration section for guidance)
```

{% endcode %}

{% hint style="info" %}
The best configuration of the anticheat is the default configuration unless you have issues with some players' actions that you allow on your server (example: Prop spawn spam) or bad quality scripts
{% endhint %}

{% hint style="info" %}
If you do not have any issue with players' actions or bad quality scripts, do not modify the configuration file unnecessarily.
{% endhint %}

{% hint style="info" %}
Update the configuration file only if needed and only if you know what are you doing
{% endhint %}

{% hint style="warning" %}
Modifying the configuration file without knowing what are you doing or causing errors can lead to security, server or anticheat issues
{% endhint %}

#### Why does the anticheat not start after following the steps from above?

{% hint style="danger" %}

#### Why does the resource not start and it shows this message?

#### You lack the entitlements required to use rac

{% endhint %}

{% code overflow="wrap" %}

```
As mentioned above, you have to ensure that the anticheat resource and server license are on the same cfx.re portal account. In order to make anticheat resource work, you have to use the server license from the same cfx.re portal account from where you got the anticheat resource or transfer the anticheat resource to the account from where you use the server license.
```

{% endcode %}

{% hint style="danger" %}
Any resource from cfx.re portal can be transferred once
{% endhint %}

{% hint style="info" %}
Check Information section for guidance and understanding how fivem resources are working
{% endhint %}

#### How can I transfer the anticheat resource to other account?

{% code overflow="wrap" %}

```
To transfer your anticheat resource to another cfx.re portal account, you have to access your Assets page from cfx.re portal account. In your Assets page you have to locate the anticheat resource named rac. After you locate your resource that you want to transfer, you have to select it and there is a button on the bottom of the page named Transfer. After you pressed the Transfer button, you have to enter the username where to transfer the anticheat resource. You will receive an e-mail to confirm your action. When the anticheat resource will be transfered to the account from where you use the server license, the anticheat resource will work.
```

{% endcode %}

{% hint style="info" %}
Check Information section for guidance and understanding how fivem resources are working
{% endhint %}


---

# 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.reasonanticheat.net/resources-documentation/reason-anticheat/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.
