# Installation

{% stepper %}
{% step %}

#### Install all dependencies <a href="#install-all-dependencies" id="install-all-dependencies"></a>

Download and install the following dependencies:

* [PolyZone](https://github.com/mkafrin/PolyZone)
* [bs-lib](https://github.com/bluenzzz/bs-lib)
* [Onesync infinity](https://docs.fivem.net/docs/scripting-reference/onesync/)
  {% endstep %}

{% step %}
Install ice skates

When you download our script package, you will find two folders:

* `brnx-iceorinkskates-addon`
* `brnx-iceorinkskates-replace`

<figure><img src="https://2723880247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqINoW16Htqw2onHmq7mY%2Fuploads%2Fd4q6LBYESvZAkjcg4zmD%2Fimage.png?alt=media&#x26;token=65212910-72c3-4a88-99df-290515fe4c01" alt=""><figcaption></figcaption></figure>

You only need to choose **one** to install on your server.

* Use **addon** if you want to add the skates as new items without replacing existing ones.
* Use **replace** if you want the skates to replace existing models in the game.

⚠ **Note:** Do **not** install both at the same time — only one is needed for proper function.
{% endstep %}

{% step %}

#### Add to server.cfg

All resources used by brnx-iceorinksystem need to be started before brnx-iceorinksystem it self. This includes your framework, inventory etc. Putting `start brnx-iceorinksystem` at the end of your server.cfg&#x20;

<figure><img src="https://2723880247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqINoW16Htqw2onHmq7mY%2Fuploads%2Fd4q6LBYESvZAkjcg4zmD%2Fimage.png?alt=media&#x26;token=65212910-72c3-4a88-99df-290515fe4c01" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
When you download our script file, there will be two types of skate files: addon or replace. You can choose whether you prefer an addon or replace for your city. Note: It is not necessary to put both files on your server.
{% endhint %}

{% hint style="warning" %}
Warning, if you installed the `brnx-iceorinkskates-addon`, you need to start it before any clothing stream, so that your skates don't keep changing numbers.
{% endhint %}

```lua
// Example:

# Libs
start PolyZone
start bs-lib

# Essentials
start framework
start inventory

# Script
start brnx-iceorinkskates
start brnx-iceorinksystem
```

{% endstep %}
{% endstepper %}

### How to update

{% stepper %}
{% step %}

#### Backup script

Take a backup of your script resource. We recommend doing this by creating a ZIP file of the `brnx-iceorinksystem` folder.
{% endstep %}

{% step %}

#### Delete old script

Delete the old `brnx-iceorinksystem` resource from your server.
{% endstep %}

{% step %}

#### Configure

If you have made any changes to the config files, make sure to reapply them. Unless stated otherwise at the end of the patch notes, you can copy the entire config folder.
{% endstep %}
{% endstepper %}
