Label::los

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
Shared

Updates the los(Line of Sight) on the selected label.

Syntax

Boolean label.los

Examples

Updates the los of the label through the command /labellos

Server-Side
let startLabel = mp.labels.new("Use /labellos to update the los of this label.", new mp.Vector3(-431.88, 1146.86, 327),
{
    los: false,
    font: 1,
    drawDistance: 100,
});

mp.events.addCommand("labellos", (player) => {
    if(startLabel.los === true){
        startLabel.los = false;
    } else {
        startLabel.los = true;
    }
    player.outputChatBox("Label Updated");
});

See Also