Blip::getColour: Difference between revisions

From RAGE Multiplayer Wiki
(Added example & changed layout)
mNo edit summary
Line 1: Line 1:
{{ClientSide}}
Property to return the colour value of the blip.
Property to return the colour value of the blip.



Revision as of 23:13, 15 June 2018

Property to return the colour value of the blip.

Syntax

blip.getColour();

Return Value

  • Number

Examples

Retrieving the colour value from the blip called policeBlip

Client-Side
let policeBlip = mp.blips.new(60, new mp.Vector3(407.95, -961.05, 0),
    {
        color: 3,
        shortRange: true,
});

let getBlipColour = policeBlip.getColour();

mp.gui.chat.push("Colour: " + getBlipColour);
//Output: "Colour: 3"

See also