Перейти к содержанию

Marker::colour

Материал из RAGE MP Wiki Archive
Client-Side

Change the colour of the selected marker.

Syntax

<syntaxhighlight lang="javascript"> marker.colour = colour; </syntaxhighlight>

Attribute Types

  • colour: [Int, Int, Int, Int] [0:255]

Examples

Changes the colour of the marker from white to red.

<syntaxhighlight lang="javascript"> let testMarker = mp.markers.new(1, new mp.Vector3(-431.88, 1146.86, 325), 2.0);

testMarker.colour = [255, 0, 0, 255] </syntaxhighlight>