# Installations

{% hint style="warning" %}
Currently only supports with sfphone!
{% endhint %}

## Step 1 ➡ Dependencies&#x20;

This is one of the most important parts, since without the dependencies, the resource will never work or not start, here we will list the dependencies with their respective links for you to download and add them to your server.

{% embed url="<https://github.com/overextended/oxmysql>" %}

{% embed url="<https://github.com/mkafrin/PolyZone>" %}

## Step 2 ➡ Resources in server.cfg

{% hint style="warning" %}
if you are using ESX ➡ NEVER, but NEVER, you must place the resources above `es_extended`, if you do this they will never work and will throw errors
{% endhint %}

The correct order of the resources is as follows, always keeping <mark style="color:orange;">es\_extended</mark> and its cores above, but the other normal resources below

```
ensure screenshot-basic
ensure sfracing
```

## Step 3 ➡ Database

Run query/SQL query and paste below code

{% code fullWidth="false" %}

```sql
DROP TABLE IF EXISTS `sfracing_tracks`;

CREATE TABLE `sfracing_tracks` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `checkpoints` text COLLATE utf8mb4_unicode_ci,
  `records` text COLLATE utf8mb4_unicode_ci,
  `creatorid` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `creatorname` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `distance` int DEFAULT NULL,
  `raceid` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

```

{% endcode %}

## Step 4 ➡ Click on [Config](https://docs.scriptsfivem.com/resources/sfracing/config)&#x20;
