Blip::alpha: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
mNo edit summary
Line 3: Line 3:
==Syntax==
==Syntax==
<syntaxhighlight lang="typescript">
<syntaxhighlight lang="typescript">
blip.alpha = 1;
blip.alpha = 255;
</syntaxhighlight>
</syntaxhighlight>



Revision as of 12:55, 29 December 2017

This function is used to change the blip alpha.

Syntax

blip.alpha = 255;

Example

This will change a blip to be transparent.

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

createdBlip.alpha = 0;

See Also