Blip::color: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (Colours already listed below)
Line 4: Line 4:
<syntaxhighlight lang="typescript">
<syntaxhighlight lang="typescript">
blip.colour = 1;
blip.colour = 1;
</syntaxhighlight>  
</syntaxhighlight>
 
See [[Blips]] for all the blip colours.


==Example==  
==Example==  

Revision as of 19:23, 12 November 2017

This function is used to change the blip colour.

Syntax

blip.colour = 1;

Example

This will change a blip to the colour red.

Server-Side
let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0));

createdBlip.colour = 1;

Blip colours

See Also