This commit is contained in:
Siga
2020-03-23 16:26:25 +01:00
parent e59b84d6ac
commit 1b3bac1d8a

View File

@@ -8,7 +8,7 @@
export default function playerBlips() { export default function playerBlips() {
mp.events.add("entityStreamIn", (entity) => { mp.events.add("entityStreamIn", (entity) => {
if (entity.type === "player") { if (entity.type === "player") {
console.log(entity.id); console.log(entity.name);
let color = parseInt(entity.getVariable("blipColor")); let color = parseInt(entity.getVariable("blipColor"));
if (entity.blip == 0) entity.createBlip(1); if (entity.blip == 0) entity.createBlip(1);
entity.setBlipColor(isNaN(color) ? 0 : color); entity.setBlipColor(isNaN(color) ? 0 : color);