test farbe pd
This commit is contained in:
@@ -30,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: [171, 0, 207, 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
|
color: [0, 173, 255, 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
|
||||||
@@ -42,18 +42,18 @@ export default function customNametags() {
|
|||||||
if (armour > 0) {
|
if (armour > 0) {
|
||||||
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 + height, width * health, height, 200, 0, 0, 200);
|
graphics.drawRect(x - width / 2 * (1 - health), y2, width * health, height, 200, 0, 0, 200);
|
||||||
|
|
||||||
var x2 = x + width / 2 + border / 2;
|
var x2 = x + width / 2 + border / 2;
|
||||||
|
|
||||||
graphics.drawRect(x, y2 + height, width + border * 2, height + border * 2, 0, 0, 0, 200);
|
graphics.drawRect(x, y2 + height, width + border * 2, height + border * 2, 0, 0, 0, 200);
|
||||||
graphics.drawRect(x, y2 + height, width, height, 150, 150, 150, 255);
|
graphics.drawRect(x, y2 + height, width, height, 200, 200, 200, 255);
|
||||||
graphics.drawRect(x - width / 2 * (1 - armour), y2, width * armour, height, 255, 255, 255, 200);
|
graphics.drawRect(x - width / 2 * (1 - armour), y2 + height, width * armour, height, 255, 255, 255, 200);
|
||||||
}
|
}
|
||||||
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 + height, width * health, height, 200, 0, 0, 200);
|
graphics.drawRect(x - width / 2 * (1 - health), y2, width * health, height, 200, 0, 0, 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user