This commit is contained in:
michael.reiswich
2021-03-26 18:58:27 +01:00
parent 1fc234cce8
commit 2bf9a1bf7f

View File

@@ -9,7 +9,12 @@ export default function playerBlips() {
mp.events.add("entityStreamIn", (entity) => {
if (entity.type === "player") {
try {
mp.gui.chat.push("Player recieved: Yes --> ColorID :" + entity.data.blipColor);
} catch (e) {
//E
}
let color = parseInt(entity.getVariable("blipColor"));
if (entity.blip == 0) entity.createBlip(1);
entity.setBlipColor(isNaN(color) ? 0 : color);