Blip::color: Difference between revisions
(Created page with "{{Incomplete Functions}}") |
MrPancakers (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{ | This function is used to change the blip colour. | ||
==Syntax== | |||
<syntaxhighlight lang="typescript"> | |||
blip.colour = 1; | |||
</syntaxhighlight> | |||
See [[Blips]] for all the blip colours. | |||
==Example== | |||
This will change a blip to the colour red. | |||
<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"> | |||
let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0)); | |||
createdBlip.colour = 1; | |||
</syntaxhighlight> | |||
</div> | |||
==See Also== | |||
{{Blip_function}} | |||
Revision as of 07:08, 2 November 2017
This function is used to change the blip colour.
Syntax
blip.colour = 1;
See Blips for all the blip colours.
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;