Marker::getColour

From RAGE Multiplayer Wiki
Revision as of 09:52, 14 May 2018 by MrPancakers (talk | contribs) (Creates the page from incomplete)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Server-Side

Retrieves the color of the selected marker

Syntax

marker.getColor();

Returned Values

  • colour: [Int, Int, Int, Int]

Example

Retrieves the color of the marker and outputs the result in the console.

let testMarker = mp.markers.new(1, new mp.Vector3(-441.88, 1156.86, 325), 2.0, {
    color: [255, 255, 0, 255]
});

let col = testMarker.getColor();
console.log("Colour: " + col)