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

Marker::colour

Материал из RAGE MP Wiki Archive
Версия от 09:45, 14 мая 2018; imported>MrPancakers (Creates the page from incomplete.)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
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>