Fixed wrong id in nametag
This commit is contained in:
@@ -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) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user