debug
This commit is contained in:
@@ -8,13 +8,15 @@
|
||||
export default function playerBlips() {
|
||||
mp.events.add("entityStreamIn", (entity) => {
|
||||
if (entity.type === "player") {
|
||||
|
||||
mp.gui.chat.push("Player recieved: Yes --> ColorID :" + entity.data.blipColor);
|
||||
let color = parseInt(entity.getVariable("blipColor"));
|
||||
if (entity.blip == 0) entity.createBlip(1);
|
||||
entity.setBlipColor(isNaN(color) ? 0 : color);
|
||||
mp.game.invoke(Natives.SET_BLIP_CATEGORY, entity.blip, 7);
|
||||
mp.game.invoke(Natives.SHOW_HEADING_INDICATOR_ON_BLIP, entity.blip, true);
|
||||
mp.game.invoke(Natives.SET_BLIP_AS_SHORT_RANGE, entity.blip, true);
|
||||
mp.game.invoke(Natives.SET_BLIP_DISPLAY, entity.blip, 6);
|
||||
mp.game.invoke(Natives.SET_BLIP_DISPLAY, entity.blip, 8);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user