> For the complete documentation index, see [llms.txt](https://docs.lostdev.store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lostdev.store/races/getting-started.md).

# Getting Started

LD Races is a full multiplayer & solo racing system for FiveM. It covers everything from a single "time trial against your own ghost" to 8-player illegal street races that page the police.

### What's included

* **Lobbies** — grid starts or same-point starts, ready-checks, host controls, entry fees.
* **Ghost replay** — race against a global or personal best-time ghost vehicle.
* **Illegal races** — configurable police dispatch alerts with cooldowns and requirements.
* **Leaderboards** — global, weekly, monthly, per-class, per-vehicle, personal best.
* **In-game route editor** — build and publish routes without leaving the game, via `/racecreator` and a set of `race_*` commands (no external editor needed).
* **Rewards & XP hooks** — cash payouts by position/medal, plus two events so your own XP/skill system can hook in without editing this resource.
* **Multi-framework support** — QBCore, QBX (Qbox), ESX, or fully standalone, auto-detected.

This documentation covers everything you need as the **server owner running this resource**: installation, configuration, day-to-day admin usage, and how to integrate it with your other resources. It does not cover the internal source code — the script is sold as-is and the in-game tools (route creator, admin commands, exports/events below) are the supported way to configure and extend it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.lostdev.store/races/getting-started.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
