Fixed wrong id in nametag

This commit is contained in:
hydrant
2018-11-18 17:09:02 +01:00
parent e0853b2549
commit 40c8808261

View File

@@ -14,11 +14,11 @@ mp.events.add('render', (nametags) => {
let [player, x, y, distance] = nametag;
if (distance <= maxDistance) {
let scale = (distance / maxDistance);
let scale = distance / maxDistance;
if (scale < 0.6) scale = 0.6;
var health = player.getHealth();
health = health < 100 ? 0 : ((health - 100) / 100);
health = health < 100 ? 0 : (health - 100) / 100;
var armour = player.getArmour() / 100;
@@ -55,5 +55,5 @@ mp.events.add('render', (nametags) => {
}
}
}
})
})
});
});