Added mileage, changed all namespaces from reallife_gamemode to ReallifeGamemode

This commit is contained in:
hydrant
2019-03-06 21:12:34 +01:00
parent 13142edbb7
commit bee3497fc3
104 changed files with 1408 additions and 297 deletions

View File

@@ -60,6 +60,17 @@ mp.events.add('render', () =>
outline: true,
centre: false
});
var drivenDistance = player.vehicle.getVariable("drivenDistance");
var drivenDistanceStr = "0";
if (drivenDistance) drivenDistanceStr = parseFloat(drivenDistance).toFixed(3).toString();
mp.game.graphics.drawText(drivenDistanceStr + " KM", [0.48, 0.973], {
font: 0,
color: [255, 255, 255, 255],
scale: [0.35, 0.35],
outline: true,
centre: false
});
}
else {
if (dictLoaded) {