# Konfiguration

## FJX CarHUD - Konfigurationsdokumentation

**Hinweis:** Nach Änderungen an der config.lua muss die Ressource neu gestartet werden!

***

### 🔹 Farben

**Gradient der Bar (links → rechts):**

`Config.GradientColors = { left = "rgba(131, 195, 255, 0.85)", -- Linke Farbe (Blau) right = "rgba(0, 14, 139, 0.85)" -- Rechte Farbe (Lila) }`

**Textfarbe der km/h Anzeige:**

`Config.TextColor = "#ffffff" -- Weiß`

***

### 🔹 Größe & Form

**Breite & Höhe der Bar, Abrundung, Textgröße:**

`Config.BarWidth = 240 -- Breite in Pixel (Standard: 240)`&#x20;

`Config.BarHeight = 8 -- Höhe in Pixel (Standard: 8)`&#x20;

`Config.BorderRadius = 4 -- Abrundung der Ecken in Pixel (Standard: 4)`&#x20;

`Config.FontSize = 14 -- Textgröße der km/h Anzeige in Pixel (Standard: 14)`

***

### 🔹 HUD Position

**Mögliche Werte:** "bottom-center", "bottom-left", "bottom-right", "top-left", "top-right", "top-center"

`Config.Position = "bottom-center" Config.Margin = 20 -- Abstand vom Rand in Pixel`

***

### 🔹 Geschwindigkeitseinstellungen

**Maximale Geschwindigkeit & Aktualisierungsrate:**

`Config.MaxSpeed = 200 -- Maximalgeschwindigkeit für volle Bar in km/h Config.RefreshRate = 200 -- Refresh Rate in ms (niedriger = flüssiger, höhere CPU-Last)`

***

### 🔹 Funktionen

**HUD umschalten mit Tastendruck:**

`Config.ToggleKey = "F7" -- Default: F7`

> Key IDs: <https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/>

***

### 🔹 Tipps & Hinweise

* Farben ändern: Config.GradientColors / Config.TextColor
* Größe & Form: Config.BarWidth, Config.BarHeight, Config.BorderRadius, Config.FontSize
* Position anpassen: Config.Position & Config.Margin
* MaxSpeed & Refresh: für Performance-Anpassungen
* HUD ein-/ausblenden: Config.ToggleKey


---

# 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://fjx.gitbook.io/fjx-docs/car-hud/konfiguration.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.
