Blip::setAlpha: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Sets alpha-channel for blip color.<br><br>Example:<br><br>Blip blip = Blip::ADD_BLIP_FOR_ENTITY(entity);<br>Blip::SET_BLIP_COLOUR(blip , 3);<br>Blip::SET_BLIP_ALPHA(blip , 64);<br>
Function to set alpha-channel for blip color.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">blip.setAlpha(blip, alpha);</syntaxhighlight>
<syntaxhighlight lang="javascript">blip.setAlpha(alpha);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''blip:''' Blip
* '''alpha:''' {{RageType|Number}} alpha value in 0 to 255
*'''alpha:''' int
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
{{ClientsideCode|
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
let policeBlip = mp.blips.new(60, new mp.Vector3(407.95, -961.05, 0));
policeBlip.setAlpha(64);
</syntaxhighlight>
</syntaxhighlight>
}}
==See also==
==See also==
{{Blip_s_function_c}}
{{Blip_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:Blip API]]
[[Category:Client-side Function]]

Latest revision as of 08:43, 6 May 2019