# Konfiguration

### 🔧 Grundeinstellungen

**Wartezeit bevor das Geschwindigkeitslimit angezeigt wird:**

```lua
Config.WaitForTime -- (in Millisekunden, Standard: 1000)
```

**Update-Intervall:**

```lua
Config.UpdateInterval (in Millisekunden, Standard: 500)
```

> Niedriger = flüssiger, aber höhere CPU-Last

***

### 🖼 Geschwindigkeitsbilder

Die HUD-Anzeige verwendet Bilder für jedes Geschwindigkeitslimit. Standardbilder befinden sich in html/img/.

**Beispiel SpeedImages:**

```lua
[30] = "30.png",
[50] = "50.png",
[60] = "60.png",
[70] = "70.png",
[80] = "80.png",
[100] = "100.png",
[120] = "120.png",
[130] = "130.png",
["unlimited"] = "unlimited.png"
```

**Weitere Bilder hinzufügen:**

1. Lege die PNG-Datei im Ordner html/img/ ab.
2. Füge sie in Config.SpeedImages hinzu, z. B.:\
   \[90] = "90.png"

> Nun wird 90 km/h automatisch angezeigt, wenn bei Config.StreetSpeedLimits mit 90 konfiguriert wird.

***

### 🛣 Straßen und Limits

Config.StreetSpeedLimits definiert die Limits für alle Straßen:

```lua
"Joshua Rd" = 50,
"Senora Fwy" = "unlimited",
"Route 68" = 80
```

**Neue Straßen hinzufügen:**

1. Exakten Straßennamen finden (z. B. per /street Command).
2. In Config.StreetSpeedLimits eintragen, z. B.:<br>

   ```lua
   "Neue Straße" = 60`
   ```

> Das Limit wird automatisch im HUD angezeigt.

***

### 🛠 Befehle

Street Command aktivieren/deaktivieren:

```lua
Config.EnableStreetCommand = true/false
```

Command Name:

```lua
Config.StreetCommandName = "street"
```

> Der Straßenname kann zur Konfiguration per Command abgefragt werden.

***

### 🔔 Notification-System

Unterstützte Systeme: "esx", "qb", "mythic", "custom", "native", "disabled"

**Custom Event Beispiel:**

```lua
Config.CustomNotificationEvent = "my_custom_event"
Config.NotificationSettings = {
custom_type = "info",
custom_title = "Straßenname",
custom_duration = 10000
}
```

> Detaillierte Einstellungen siehe Config.NotificationSettings.

***

### 📐 Display Einstellungen

Position der Anzeige:

\`\`bottom = "20%",\
right = "20px",\
left = false,\
top = false

Größe der Anzeige:

width = "120px",\
height = "120px"

Fade-In/Out Geschwindigkeit:

```lua
Config.FadeSpeed = 300 (in Millisekunden)
```

***

### ⚠️ Hinweise

* Neue Bilder müssen im PNG-Format vorliegen.
* Straßennamen müssen exakt mit GTA/Map-Daten übereinstimmen.
* Änderungen in config.lua erfordern Neustart der Ressource.

***

### 💡 Tipps

* Füge neue Geschwindigkeitsbilder nur hinzu, wenn sie benötigt werden.
* Halte UpdateInterval auf einem vernünftigen Wert.
* Nutze /street Command, um exakte Straßennamen herauszufinden.


---

# 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/speedlimit/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.
