From 3a9c06ef97c15b44b4162f43b790ea6905313f55 Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 8 Sep 2019 20:56:48 +0200 Subject: [PATCH] km stand 1 nachkommastelle --- ReallifeGamemode.Client/Speedometer/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Client/Speedometer/index.ts b/ReallifeGamemode.Client/Speedometer/index.ts index 21a89d9a..bc01c7f1 100644 --- a/ReallifeGamemode.Client/Speedometer/index.ts +++ b/ReallifeGamemode.Client/Speedometer/index.ts @@ -64,7 +64,7 @@ export default function speedometer(globalData: GlobalData) { var drivenDistance = player.vehicle.getVariable("drivenDistance"); var drivenDistanceStr = "0"; - if (drivenDistance) drivenDistanceStr = parseFloat(drivenDistance).toFixed(3).toString().replace(".", ","); + if (drivenDistance) drivenDistanceStr = parseFloat(drivenDistance).toFixed(1).toString(); mp.game.graphics.drawText(drivenDistanceStr + " KM", [0.48, 0.973], { font: 0, color: [255, 255, 255, 255],