Nach Änderungen an der config.lua muss die Resource neu gestartet werden.
Farben
Config.GradientColors = {
left = "rgba(131, 195, 255, 0.85)", -- Linke Farbe (Blau)
right = "rgba(0, 14, 139, 0.85)" -- Rechte Farbe (Lila)
}
Config.TextColor = "#ffffff" -- Weiß
Config.GradientColorstableFarbverlauf der Bar von links nach rechts. left ist die Startfarbe, right die Endfarbe — beide im CSS-Format.
Config.TextColorstringStandard: "#ffffff"Textfarbe der km/h-Anzeige.
Größe & Form
Config.BarWidth = 240 -- Breite in Pixel
Config.BarHeight = 8 -- Höhe in Pixel
Config.BorderRadius = 4 -- Abrundung der Ecken in Pixel
Config.FontSize = 14 -- Textgröße der km/h-Anzeige in Pixel
Config.BarWidthnumberStandard: 240Breite der Bar in Pixel.
Config.BarHeightnumberStandard: 8Höhe der Bar in Pixel.
Config.BorderRadiusnumberStandard: 4Abrundung der Ecken in Pixel.
Config.FontSizenumberStandard: 14Textgröße der km/h-Anzeige in Pixel.
Position
Config.Position = "bottom-center"
Config.Margin = 20 -- Abstand vom Rand in Pixel
Config.PositionstringStandard: "bottom-center"Position des HUD auf dem Bildschirm. Mögliche Werte:
bottom-center · bottom-left · bottom-right · top-left · top-right · top-center
Config.MarginnumberStandard: 20Abstand vom Bildschirmrand in Pixel.
Geschwindigkeit
Config.MaxSpeed = 200 -- Maximalgeschwindigkeit für volle Bar in km/h
Config.RefreshRate = 200 -- Refresh Rate in ms
Config.MaxSpeednumberStandard: 200Maximalgeschwindigkeit in km/h, bei der die Bar vollständig gefüllt ist.
Config.RefreshRatenumberStandard: 200Aktualisierungsrate in Millisekunden. Niedriger = flüssiger, aber höhere CPU-Last.
Tastenbelegung
Config.ToggleKey = "F7" -- HUD ein-/ausblenden
Config.ToggleKeystringStandard: "F7"Taste, mit der sich das HUD ein- und ausblenden lässt.
Auf einen Blick
| Was du ändern willst | Wo |
|---|---|
| Farben | Config.GradientColors, Config.TextColor |
| Größe & Form | Config.BarWidth, Config.BarHeight, Config.BorderRadius, Config.FontSize |
| Position | Config.Position, Config.Margin |
| Performance | Config.MaxSpeed, Config.RefreshRate |
| HUD ein-/ausblenden | Config.ToggleKey |