ammobox
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
|
||||
const Natives = {
|
||||
SET_BLIP_CATEGORY: RageEnums.Natives.Ui.SET_BLIP_CATEGORY,
|
||||
SHOW_HEADING_INDICATOR_ON_BLIP: RageEnums.Natives.Ui.SHOW_HEADING_INDICATOR_ON_BLIP,
|
||||
SET_BLIP_AS_SHORT_RANGE: RageEnums.Natives.Ui.SET_BLIP_AS_SHORT_RANGE,
|
||||
SET_BLIP_DISPLAY: RageEnums.Natives.Ui.SET_BLIP_DISPLAY
|
||||
};
|
||||
|
||||
export default function playerBlips() {
|
||||
|
||||
@@ -36,7 +30,6 @@ export default function playerBlips() {
|
||||
let color = player.getVariable("blipColor");
|
||||
pBlip.setColour(isNaN(color) ? 0 : color);
|
||||
pBlip.setPosition(player.position.x, player.position.y, player.position.z);
|
||||
//pBlip.setRotation(player.heading);
|
||||
});
|
||||
}, 50);
|
||||
|
||||
@@ -54,24 +47,6 @@ export default function playerBlips() {
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
mp.events.add("entityStreamIn", async (entity) => {
|
||||
await mp.game.waitAsync(100);
|
||||
if (entity.type === "player") {
|
||||
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, 8);
|
||||
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
mp.events.addDataHandler("blipColor", (entity, value) => {
|
||||
if (entity.type === "player") {
|
||||
|
||||
Reference in New Issue
Block a user