Label::los

From RAGE Multiplayer Wiki
Revision as of 07:32, 31 May 2018 by MrPancakers (talk | contribs) (Created page with "{{Shared}} Updates the los(Line of Sight) on the selected label. == Syntax == <syntaxhighlight lang="javascript"> label.los = true; </syntaxhighlight> == Examples == Updat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Shared

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

Syntax

label.los = true;

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