> For the complete documentation index, see [llms.txt](https://wiki.qfdevelopers.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.qfdevelopers.com/scripts/editor-14/configuration.md).

# Configuration

Page dedicated to how to configure our Car Races

## Languages

You can set the language of the script in the configuration file.

* `en`: English
* `fr`: French
* `pl`: Polish
* `de`: German
* `es`: Spanish

<figure><img src="https://511863936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBSud7PQu51IKAxzl2VLS%2Fuploads%2FAWeTCYv61vEFI3Yt65LT%2Fconfig.lua%20(66).png?alt=media&amp;token=c38df91a-3b4c-4d59-af03-e1dd3a71212b" alt=""><figcaption></figcaption></figure>

## Command

Defines the command used to open the race menu:

* `Command.enabled`:\
  Set to `true` to allow players to access the race system using a command.
* `Command.name`:\
  Name of the command used to open the race menu (e.g., `/racing`).

<figure><img src="https://511863936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBSud7PQu51IKAxzl2VLS%2Fuploads%2FUwiAzScntob7pbZE4kXG%2Fconfig.lua%20(95).png?alt=media&amp;token=aec577b1-2df6-493e-b107-d5249a6ab7b2" alt=""><figcaption></figcaption></figure>

## Target

Defines the targeting system used for interacting with race-related NPCs or zones:

* `Target.ox_target`: Set to `true` to use `ox_target`.
* `Target.qtarget`: Set to `true` to use `qtarget`.
* `Target.QBCore_target`: Set to `true` to use `qb-target`.
* `Target.own`: Set to `true` if you are using a custom target system. Requires manual implementation in `client/editable.lua`.
* `Target.useE`: Set to `true` to allow interaction using the **E key** instead of a target system.

<figure><img src="https://511863936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBSud7PQu51IKAxzl2VLS%2Fuploads%2Fjs8wOotV0JD39vrhQPyN%2Fconfig.lua%20(96).png?alt=media&amp;token=a200ac41-8403-447c-bab7-18fa383f6ba4" alt=""><figcaption></figcaption></figure>

## Locations

Defines NPC spawn locations for accessing the race system menu:

Each location includes the following properties:

* `model`:\
  Ped model to be spawned (e.g., `'s_m_y_doorman_01'`).
* `coords`:\
  Vector3 coordinates where the NPC will be placed.
* `heading`:\
  Direction the NPC should face.
* `icon`:\
  Font Awesome icon shown in the interaction prompt (e.g., `'fa-solid fa-play'`).
* `label`:\
  Text label displayed when targeting the NPC (e.g., `'Open menu'`).

> 📌 You can add multiple entries using the same structure to place race access points in different parts of the map.

<figure><img src="https://511863936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBSud7PQu51IKAxzl2VLS%2Fuploads%2FGdl8ErEMWXyG5UCKkzi8%2Fconfig.lua%20(97).png?alt=media&amp;token=1f94a9c2-535b-4682-85fe-4c9f3690e2cf" alt=""><figcaption></figcaption></figure>

## XP System

Defines XP system settings for racing progression:

* `XP.win`:\
  Amount of XP awarded to the winner of a race.
* `XP.lose`:\
  Amount of XP awarded to players who participate but do not win.
* `XP.nextLevel`:\
  Total XP required to level up. Can be used for unlocking rewards or tracking player progression.

<figure><img src="https://511863936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBSud7PQu51IKAxzl2VLS%2Fuploads%2FkR86g9wjsCrozZLhotSf%2Fconfig.lua%20(98).png?alt=media&amp;token=1dd6d871-8430-4ad2-b42d-52e66bb26335" alt=""><figcaption></figcaption></figure>

## Other Data

Defines core race behavior settings and gameplay parameters:

* `Data.joinProximity`:\
  Distance (in meters) within which players can join a race.
* `Data.joinKeybind`:\
  Key code (default `51`, which is the **E** key) used to join a race.
* `Data.joinDuration`:\
  Time (in milliseconds) players have to join after the race is created.
* `Data.freezeDuration`:\
  Duration (in milliseconds) that players are frozen at the start before the race begins.
* `Data.checkpointProximity`:\
  Distance (in meters) required to trigger checkpoint validation.
* `Data.checkpointRadius`:\
  Radius of the visible checkpoint area.
* `Data.checkpointHeight`:\
  Height of the checkpoint marker.
* `Data.checkpointBlipColor`:\
  Blip color ID used for checkpoints on the map.
* `Data.finishTimeout`:\
  Maximum time (in milliseconds) a race remains active after the first player finishes.

<figure><img src="https://511863936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBSud7PQu51IKAxzl2VLS%2Fuploads%2F0AhwPOG4oRCGs5aJqUWX%2Fconfig.lua%20(99).png?alt=media&amp;token=a7e8eac9-3aab-4e00-ba85-efe07242a79e" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.qfdevelopers.com/scripts/editor-14/configuration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
