next try
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user