This commit is contained in:
michael.reiswich
2021-03-30 23:23:50 +02:00
parent 3405c4d28d
commit caf149636b

View File

@@ -3,6 +3,7 @@ const width = 0.03;
const height = 0.0065; const height = 0.0065;
const border = 0.001; const border = 0.001;
const color = [73, 137, 0, 255]; const color = [73, 137, 0, 255];
var faction;
export default function customNametags() { export default function customNametags() {
@@ -29,7 +30,7 @@ export default function customNametags() {
mp.game.graphics.drawText(player.name + " (" + player.remoteId + ")", [x, y], mp.game.graphics.drawText(player.name + " (" + player.remoteId + ")", [x, y],
{ {
font: 4, 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], scale: [0.4, 0.4],
outline: true, outline: true,
centre: false centre: false
@@ -52,7 +53,7 @@ export default function customNametags() {
else { else {
graphics.drawRect(x, y2, width + border * 2, height + border * 2, 0, 0, 0, 200); 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, 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);
} }
} }
} }