Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop

This commit is contained in:
kookroach
2021-04-04 23:08:43 +02:00
6 changed files with 5573 additions and 35 deletions

View File

@@ -31,8 +31,6 @@ const colors = [
export default function customNametags() {
mp.nametags.enabled = false;
mp.events.add('render', (nametags) => {
const graphics = mp.game.graphics;
@@ -53,6 +51,7 @@ export default function customNametags() {
y -= scale * (0.005 * (screenRes.y / 1080));
let colorId = game.players.at(player.remoteId).nametagColor;
let color = colors.find(c => c.id === colorId).color;
mp.game.graphics.drawText(player.name + " (" + player.remoteId + ")", [x, y],

View File

@@ -72,7 +72,8 @@ class RagePlayer extends RageEntity implements IPlayer {
}
get nametagColor(): number {
var color = this.player.getVariable("nametagColor");
var color = this.player.getVariable("nameTagColor");
game.ui.sendChatMessage(`player = ${this.player.name} - color = ${color}`);
if (!color)
return 0;
return color;

File diff suppressed because it is too large Load Diff

View File

@@ -22,6 +22,5 @@
"ProjectOpened": [
"watch"
]
},
"dependencies": {}
}
}