fix NameTags

This commit is contained in:
kookroach
2021-04-04 18:52:53 +02:00
parent 32b4e8b13d
commit d9a292b829
3 changed files with 13 additions and 17 deletions

View File

@@ -59,12 +59,18 @@ class RageEntity implements IEntity {
class RagePlayer extends RageEntity implements IPlayer {
private player: PlayerMp;
public nametagColor: number[];
get name(): string {
return this.player.name;
}
get nametagColor(): number {
var color = this.player.getVariable("nametagColor");
if (!color)
return 0;
return color;
}
get vehicle(): IVehicle {
if (!this.player) {
return null;