> For the complete documentation index, see [llms.txt](https://outlaw-development.gitbook.io/outlaw-product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://outlaw-development.gitbook.io/outlaw-product-documentation/product-information/anti-cheat/installation.md).

# Installation

This page will explain how to install the script and get it working for your lovely server!

{% hint style="info" %}
If you need any support while installing make sure to make a ticket in Outlaw Discord!
{% endhint %}

### After Purchase

1. Join Outlaw Discord Server
2. Claim your discord roles with the /claim command in #bot-commands and your transaction id Example: <https://imgur.com/a/qWucHWF>
3. Make sure the account that is used to buy the package is also the same account with the server key of your server!
4. Then go to this website: <https://keymaster.fivem.net/asset-grants>
5. You will need to download the one called Outlaw Anti-Cheat
6. Unzip the main folder and then follow instructions below

### Install For Non-Framework Server

1. Unzip the folder called `OutlawAC`.
2. Then put the folder with all the files in it into your server's resource files
3. You must change the name of the anti-cheat to something random that doesn't resemble a anti-cheat! Then go into your **server.cfg** and add `ensure [resourcename]`.
4. Look through and configure your **Config.lua** file as it may false ban people if you do not setup correctly
5. Also look through **admins** folder as that's where you setup all your admins!
6. Then **restart/start** your server and enjoy a lovely anti-cheat!

{% hint style="warning" %}
If you do not configure the `Config.lua` you will most likely have issues so please configure it
{% endhint %}

### Install For ESX Server

1. Unzip the folder called `OutlawAC`
2. Then put the folder with all the files in it into your server's resource files
3. ~~Then upload the file called `optionalSQL.sql` into your database~~&#x20;
4. Then you will need to go into `fxmanifest.lua` and make it look like this below

{% code title="fxmanifest.lua" %}

```lua
fx_version 'cerulean'
games { 'gta5' }

author 'Miller#0341, HoboDevCo#3011'
description 'OutlawAC'
version '2.0.1'

client_script {
    "src/client/client.lua"
}

server_script {
    "src/server/server.lua",
    "src/server/discordbot.lua",
    'admins/admingroups.lua',
    'admins/admins.lua',
    'Configs/S_Config.lua',
}

shared_script {
    "Configs/Config.lua"
}

lua54 'yes'

escrow_ignore {
    "Configs/*.lua",
    "admins/*.lua"
}

```

{% endcode %}

&#x20; 5\. You must change the name of the anti-cheat to something random that doesn't resemble a anti-cheat! Then go into your **server.cfg** and add `ensure [resourcename]`.

&#x20; 6\. Look through and configure your **Config.lua** file as it may false ban people if you do not setup          correctly! Make sure to set your **framework** to the correct one as well as the **sql type**

&#x20; 7\. Also look through **admins** folder as that's where you setup all your admins!

&#x20; 8\. Then **restart/start** your server and enjoy a lovely anti-cheat!

### Install For QBCore Server

{% hint style="danger" %}
If you are planning on using sql bans for Qb-Core you must be using 1.9.2+ of oxmysql
{% endhint %}

1. Unzip the folder called `OutlawAC`
2. Then put the folder with all the files in it into your server's resource files
3. ~~Then upload the file called `optionalSQL.sql` into your database~~
4. Then you will need to go into `fxmanifest.lua` and make it look like this below

{% code title="fxmanifest.lua" %}

```lua
fx_version 'cerulean'
games { 'gta5' }

author 'Miller#0341, HoboDevCo#3011'
description 'OutlawAC'
version '2.0.1'

client_script {
    "src/client/client.lua"
}

server_script {
    "src/server/server.lua",
    "src/server/discordbot.lua",
    'admins/admingroups.lua',
    'admins/admins.lua',
    'Configs/S_Config.lua',
}

shared_script {
    "Configs/Config.lua"
}

lua54 'yes'

escrow_ignore {
    "Configs/*.lua",
    "admins/*.lua"
}
```

{% endcode %}

&#x20; 5\. You must change the name of the anti-cheat to something random that doesn't resemble a anti-cheat! Then go into your **server.cfg** and add `ensure [resourcename]`.

&#x20; 6\. Look through and configure your **Config.lua** file as it may false ban people if you do not setup          correctly! Make sure to set your **framework** to the correct one as well as the **sql type**

&#x20; 7\. Also look through **admins** folder as that's where you setup all your admins!

&#x20; 8\. Then **restart/start** your server and enjoy a lovely anti-cheat!
