# Installation

### Dependencies

<details>

<summary>oxmysql</summary>

#### Installation

* Download the [latest build](https://github.com/overextended/oxmysql/releases/latest) of oxmysql (not the source code).
* Extract the contents of the archive to your resources folder.
* Start the resource near the top of your resources in your server.cfg.

#### Required version

Your oxmysql version must be <mark style="color:yellow;">2.0.0 or above</mark> in order to work with our system.

#### Use the built version

Make sure you have downloaded the <mark style="color:yellow;">built version</mark> of oxmysql! If you download the source code, then the resource won't start and queries are unable to execute.&#x20;

The built version can be downloaded from the [releases page](https://github.com/overextended/oxmysql/releases/latest) (oxmysql.zip).

</details>

<details>

<summary>ox_lib</summary>

#### Installation

* Download the [latest build](https://github.com/overextended/ox_lib/releases/latest) of ox\_lib (not the source code).
* Extract the contents of the archive to your resources folder.
* Start the resource near the top of your resources in your server.cfg.

#### Use the built version

Make sure you have downloaded the <mark style="color:yellow;">built version</mark> of ox\_lib! If you download the source code, then it won't function correctly and the application will have problems.&#x20;

The built version can be downloaded from the [releases page](https://github.com/overextended/ox_lib/releases/latest) (ox\_lib.zip).

</details>

### Installing the resources

Make sure you have the [dependencies](#dependencies) listed above installed.&#x20;

Extract the contents of the archive to your resources folder. Add both of the resources into your server config file so they would automatically run when the server is starting up.

#### Boosting (rahe-boosting)&#x20;

1. Run the SQL queries provided in <mark style="color:blue;">rahe-boosting/db.sql</mark>.
2. Choose your framework tab from the section below & follow the instructions.

{% tabs %}
{% tab title="QB" %}
Open <mark style="color:blue;">rahe-boosting/config/shared.lua</mark> and set line 4 to <mark style="color:blue;">framework = 'QB'</mark>

Open <mark style="color:blue;">qb-policejob</mark>, find an event called <mark style="color:blue;">police:server:UpdateCurrentCops</mark> in <mark style="color:blue;">qb-policejob/server/main.lua</mark>. Add the following line **into** the function, to the end:&#x20;

```lua
TriggerEvent('police:SetCopCount', amount)
```

This makes the script send a server-side event needed for our boosting script.
{% endtab %}

{% tab title="ESX" %}
Open <mark style="color:blue;">rahe-boosting/config/shared.lua</mark> and set line 4 to <mark style="color:blue;">framework = 'ESX'</mark>
{% endtab %}

{% tab title="Custom" %}
Open <mark style="color:blue;">rahe-boosting/config/shared.lua</mark> and set line 4 to <mark style="color:blue;">framework = 'CUSTOM'</mark>
{% endtab %}
{% endtabs %}

#### Hacking device (rahe-hackingdevice)

&#x20;No additional installation steps required.

### Using the resource

Use the command <mark style="color:blue;">/boosting</mark> in-game to open the application tablet.

Use the command <mark style="color:blue;">/usehackingdevice</mark> in-game to use the hacking device.

Use the command <mark style="color:blue;">/usegpshackingdevice</mark> in-game to use the GPS hacking device.
