Marker::colour: Difference between revisions

From RAGE Multiplayer Wiki
(WHARF OUTLET)
 
(Creates the page from incomplete.)
 
Line 1: Line 1:
{{Incomplete Functions}}
{{ClientSide}}
 
Change the colour of the selected marker.
 
== Syntax ==
 
<syntaxhighlight lang="javascript">
marker.colour = colour;
</syntaxhighlight>
 
=== Attribute Types ===
* '''colour''': {{RageType|[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>

Latest revision as of 09:45, 14 May 2018

Client-Side

Change the colour of the selected marker.

Syntax

marker.colour = colour;

Attribute Types

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

Examples

Changes the colour of the marker from white to red.

let testMarker = mp.markers.new(1, new mp.Vector3(-431.88, 1146.86, 325), 2.0);

testMarker.colour = [255, 0, 0, 255]