Blip Controller

Create in-world blips for a single player or everyone.

ServerBlipController

Creates in-world blip that is displayed in-game on the minimap.

Blip and Color List(s):

Example - World

const uid = Athena.controllers.blip.append({
    sprite: 616,
    color: 5,
    pos: { x: 0, y: 0, z: 0 },
    scale: 1,
    shortRange: true,
    text: 'Simple Delivery',
});

Example - Single User

Keep in mind you should have a player reference to use this

const uid = Athena.controllers.blip.addToPlayer(player, {
    sprite: 616,
    color: 5,
    pos: { x: 0, y: 0, z: 0 },
    scale: 1,
    shortRange: true,
    text: 'Simple Delivery',
});


alt.setTimeout(() => {
    if (!player || !player.valid) {
        return;
    }

    Athena.controllers.blip.removeFromPlayer(player, uid);
}, 5000);

Last updated