Blip::color: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This function is used to change the blip colour.
__NOTOC__
 
'''Property''' related to the Blip's color.
==Syntax==
==Syntax==
<syntaxhighlight lang="typescript">
<syntaxhighlight lang="javascript">
blip.colour = 1;
blip.color = 1;
</syntaxhighlight>  
</syntaxhighlight>
 
See [[Blips]] for all the blip colours.


==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;
</syntaxhighlight>


createdBlip.colour = 1;
==Blip colors==
</syntaxhighlight>
{{Blips_colors}}
</div>


==See Also==
==See Also==
{{Blip_function}}
{{Blip_definition}}

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