Jump to content

Recommended Posts

Posted

hi.

how to change size blip in map? increase blip size 

code blip:

const Natives = {
    SET_BLIP_CATEGORY: "0x1b43a8c070cad58c",
    SHOW_HEADING_INDICATOR_ON_BLIP: "0x7fb3ef6fd3b188b7"
};

mp.events.add({
    "entityStreamIn": (entity) => {
        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);
        }
    },

    "entityDataChange": (entity, key, value) => {
        if (entity.type == "player" && key == "blipColor") {
            let color = parseInt(entity.getVariable("blipColor"));
            entity.setBlipColor(isNaN(color) ? 0 : color);
        }
    }
});

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...