Fix Nametagcolor
This commit is contained in:
@@ -12,7 +12,7 @@ export default function customNametags() {
|
||||
|
||||
mp.events.addDataHandler("nameTagColor", (entity, value) => {
|
||||
if (entity.type === "player") {
|
||||
entity.setVariable('nametagColor', value)
|
||||
entity.setVariable('nametagColor',)
|
||||
}
|
||||
});
|
||||
|
||||
@@ -36,7 +36,7 @@ export default function customNametags() {
|
||||
mp.game.graphics.drawText(player.name + " (" + player.remoteId + ")", [x, y],
|
||||
{
|
||||
font: 4,
|
||||
color: player.data.nametagColor, //Grove //Ballas 171 0 207 //PD 0 95 190 //FIB 0 0 170 LSED 147 0 0 NR 0 166 133 Trucker 255 162 Support 0 255 255 Zivilist 255 255 255
|
||||
color: [player.data.nametagColor[0], player.data.nametagColor[1], player.data.nametagColor[2], 200], //Grove //Ballas 171 0 207 //PD 0 95 190 //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
|
||||
|
||||
Reference in New Issue
Block a user