From caf149636bb2ee184f01d90ca86da9b431d0492d Mon Sep 17 00:00:00 2001 From: "michael.reiswich" Date: Tue, 30 Mar 2021 23:23:50 +0200 Subject: [PATCH] testing --- ReallifeGamemode.Client/Gui/nametags.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Client/Gui/nametags.ts b/ReallifeGamemode.Client/Gui/nametags.ts index fabb8851..c424a5c3 100644 --- a/ReallifeGamemode.Client/Gui/nametags.ts +++ b/ReallifeGamemode.Client/Gui/nametags.ts @@ -3,6 +3,7 @@ const width = 0.03; const height = 0.0065; const border = 0.001; const color = [73, 137, 0, 255]; +var faction; export default function customNametags() { @@ -29,7 +30,7 @@ export default function customNametags() { mp.game.graphics.drawText(player.name + " (" + player.remoteId + ")", [x, y], { font: 4, - color: [73, 137, 0, 255], + color: [42, 137, 0, 255], //Grove //Ballas 171 0 207 //PD 0 173 255 //FIB 0 0 170 LSED 147 0 0 NR 0 166 133 Trucker 255 162 Support 0 255 255 Zivilist 255 255 255 scale: [0.4, 0.4], outline: true, centre: false @@ -52,7 +53,7 @@ export default function customNametags() { else { graphics.drawRect(x, y2, width + border * 2, height + border * 2, 0, 0, 0, 200); graphics.drawRect(x, y2, width, height, 150, 150, 150, 255); - graphics.drawRect(x - width / 2 * (1 - health), y2, width * health, height, 255, 255, 255, 200); + graphics.drawRect(x - width / 2 * (1 - health), y2, width * health, height, 200, 0, 0, 200); } } }