# Installation

### 🏁 Welcome to FRKN-Racing v2

FRKN-Racing v2 is a modern racing system built for FiveM.\
It supports cars, motorcycles, and airplanes, with customizable race types, leaderboards, and player statistics.\
This documentation covers installation, configuration, and basic system usage.

***

### 🧠 Installation Guide

* Drag & drop the **frkn-racingv2** folder into your `resources` directory.
* Add `ensure frkn-racingv2` to your `server.cfg`.
* If item-based access is used, make sure required items exist in your inventory/database.
* Import the provided SQL files for leaderboard, race history, and player data.
* Edit `config.lua` to enable or disable features.

***

### ⚙️ Configuration

* Open `config.lua`.
* Enable or disable race types.
* Set vehicle categories.
* Configure UI and access permissions.
* Adjust performance settings if needed.

***

### 🎯 Target Configuration

You must set the target system in `config.lua`.

```lua
Interaction = {
    Target = 'qb-target' -- qb-target or ox_target
},
```

* Use `qb-target` if you are using qb-target.
* Use `ox_target` if you are using ox\_target.

***

### 📌 Notes

* FRKN-Racing v2 works with ESX, QBCore, and Qbox.
* Restart the server after any config or SQL changes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.0resmon.org/0resmon/0resmon-1/frkn-resources/frkn-racing-v2/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
