Marker::getColour
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)