This commit is contained in:
hydrant
2021-04-02 21:48:59 +02:00
parent b032934f0e
commit 8cbab7ef15
3 changed files with 84 additions and 45 deletions

View File

@@ -12,20 +12,18 @@ export default function playerBlips() {
var entityMp = <EntityMp>entity;
mp.gui.chat.push("Player recieved: Yes");
mp.gui.chat.push("Player recieved: Yes");
let color = parseInt(entity.getVariable("blipColor"));
mp.gui.chat.push("Color : " + color);
entity.createBlip(1);
entity.createBlip(1);
mp.gui.chat.push(parseInt(entity.blip) == 0 ? "Blip was not created" : "Blip was created");
mp.gui.chat.push(parseInt(entity.blip) == 0 ? "Blip was not created" : "Blip was created");
mp.gui.chat.push("entity.blip is actually " + entity.blip);
var blip = mp.blips.at(entity.blip);
blip.dimension = entityMp.dimension;
var blip = entity.blip;
mp.gui.chat.push("1 -" + blip.getAlpha() + " 2- " + blip.doesExist() + " 3-" + blip.dimension + " 4-" + entityMp.dimension);
@@ -34,8 +32,8 @@ export default function playerBlips() {
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, 8);
mp.game.invoke(Natives.SET_BLIP_DISPLAY, entity.blip, 8);
}
});
*/