Blip::color: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTC__
__NOTOC__
This function is used to change the blip colour.
'''Property''' related to the Blip's color.
 
==Syntax==
==Syntax==
<syntaxhighlight lang="typescript">
<syntaxhighlight lang="javascript">
blip.color = 1;
blip.color = 1;
</syntaxhighlight>
</syntaxhighlight>


==Example==  
==Example==  
This will change a blip to the colour red.
This will change a blip to the color red.
 
{{ServerSide}}
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0));
let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0));
createdBlip.color = 1;
createdBlip.color = 1;
</syntaxhighlight>
</syntaxhighlight>
</div>


==Blip colors==
==Blip colors==

Latest revision as of 14:40, 28 December 2017

Property related to the Blip's color.

Syntax

blip.color = 1;

Example

This will change a blip to the color red.

Server-Side

let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0));
createdBlip.color = 1;

Blip colors

See Also