km stand 1 nachkommastelle
This commit is contained in:
@@ -64,7 +64,7 @@ export default function speedometer(globalData: GlobalData) {
|
|||||||
|
|
||||||
var drivenDistance = player.vehicle.getVariable("drivenDistance");
|
var drivenDistance = player.vehicle.getVariable("drivenDistance");
|
||||||
var drivenDistanceStr = "0";
|
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], {
|
mp.game.graphics.drawText(drivenDistanceStr + " KM", [0.48, 0.973], {
|
||||||
font: 0,
|
font: 0,
|
||||||
color: [255, 255, 255, 255],
|
color: [255, 255, 255, 255],
|
||||||
|
|||||||
Reference in New Issue
Block a user