From cb07f9a6abe89fb761afd79f137056df09f0a484 Mon Sep 17 00:00:00 2001 From: VegaZ Date: Thu, 11 Feb 2021 21:06:12 +0100 Subject: [PATCH] ich bin nich mehr dumm --- ReallifeGamemode.Client/Interaction/factioninteraction.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ReallifeGamemode.Client/Interaction/factioninteraction.ts b/ReallifeGamemode.Client/Interaction/factioninteraction.ts index e250d2f8..227fef86 100644 --- a/ReallifeGamemode.Client/Interaction/factioninteraction.ts +++ b/ReallifeGamemode.Client/Interaction/factioninteraction.ts @@ -523,15 +523,15 @@ export default function factionInteraction(globalData: IGlobalData) { var currentDate = new Date(); if (deadRespawned == false) { - timeLeft = Math.round(Math.abs(deathTime - 30 - Math.floor(currentDate.getTime() / 1000))); + timeLeft = Math.round(Math.abs(deathTime.getTime() - 30 - Math.floor(currentDate.getTime() / 1000))); if (timeLeft < 1) mp.events.call("cutMedicEarnings"); } else { - timeLeft = Math.round(Math.abs(deathTime - 60 - Math.floor(currentDate.getTime() / 1000))); + timeLeft = Math.round(Math.abs(deathTime.getTime() - 60 - Math.floor(currentDate.getTime() / 1000))); if (timeLeft < 1) mp.events.call("destroyMedicTaskCheckpoint"); } if (deadRespawned == false) { - mp.game.graphics.drawText(timeLeft.toString() + "s " + deathTime, [0.5, 0.88], { + mp.game.graphics.drawText(timeLeft.toString() + "s ", [0.5, 0.88], { font: 7, color: [60, 179, 113, 255], scale: [0.3, 0.3], @@ -540,7 +540,7 @@ export default function factionInteraction(globalData: IGlobalData) { }); } else { { - mp.game.graphics.drawText(timeLeft.toString() + "s" + deathTime, [0.5, 0.88], { + mp.game.graphics.drawText(timeLeft.toString() + "s", [0.5, 0.88], { font: 7, color: [255, 203, 145, 255], scale: [0.3, 0.3],