# Installation

#### Install the resource

1. Download the resource via [keymaster](https://keymaster.fivem.net/asset-grants)
2. Place the markhor\_racing folder in the resources folder of your FiveM server
3. Add `ensure markhor_racing` to your server.cfg
4. Restart the server

#### Run the following SQL code to your data base

```sql
DROP TABLE IF EXISTS `markhor_racing_fastestlap`;
CREATE TABLE `markhor_racing_fastestlap`  (
  `id` int(0) NOT NULL AUTO_INCREMENT,
  `map` longtext DEFAULT NULL,
  `name` longtext DEFAULT NULL,
  `time` decimal(10, 0) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB;

DROP TABLE IF EXISTS `markhor_racing_general`;
CREATE TABLE `markhor_racing_general`  (
  `id` int(0) NOT NULL AUTO_INCREMENT,
  `map` longtext DEFAULT NULL,
  `stats` longtext DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB;
```
