Blip::alpha: Difference between revisions
No edit summary |
|||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="typescript"> | <syntaxhighlight lang="typescript"> | ||
blip.alpha = | blip.alpha = 255; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 9: | Line 9: | ||
This will change a blip to be transparent. | This will change a blip to be transparent. | ||
{{ServerSide}} | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
let createdBlip = mp.blips.new(1, new mp.Vector3(0, 0, 0)); | let createdBlip = mp.blips.new(1, new mp.Vector3(0, 0, 0)); | ||
| Line 16: | Line 15: | ||
createdBlip.alpha = 0; | createdBlip.alpha = 0; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{ | {{Blip_definition}} | ||
Latest revision as of 13:29, 16 January 2018
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
- Functions
- Properties