test
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
|
||||
|
||||
const Natives = {
|
||||
SET_BLIP_CATEGORY: "0x234CDD44D996FD9A",
|
||||
SHOW_HEADING_INDICATOR_ON_BLIP: "0x5FBCA48327B914DF",
|
||||
SET_BLIP_AS_SHORT_RANGE: "0xBE8BE4FE60E27B72",
|
||||
SET_BLIP_DISPLAY: "0x9029B2F3DA924928"
|
||||
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() {
|
||||
mp.events.add("entityStreamIn", (entity) => {
|
||||
if (entity.type === "player") {
|
||||
|
||||
var entityMp = <EntityMp>entity;
|
||||
|
||||
mp.gui.chat.push("Player recieved: Yes");
|
||||
|
||||
let color = parseInt(entity.getVariable("blipColor"));
|
||||
@@ -19,19 +19,22 @@ export default function playerBlips() {
|
||||
|
||||
entity.createBlip(1);
|
||||
|
||||
var blip: BlipMp;
|
||||
|
||||
|
||||
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);
|
||||
|
||||
mp.gui.chat.push("1 -" + blip.getAlpha() + " 2- " + blip.doesExist() + " 3-" + blip.dimension);
|
||||
mp.gui.chat.push("1 -" + blip.getAlpha() + " 2- " + blip.doesExist() + " 3-" + blip.dimension + " 4-" + entityMp.dimension);
|
||||
|
||||
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.game.invoke(Natives.SET_BLIP_DISPLAY, entity.blip, 8);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user