Blip::isFlashing: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
Function to return the flashing status of blip.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">blip.isFlashing(blip);</syntaxhighlight>
<syntaxhighlight lang="javascript">blip.isFlashing();</syntaxhighlight>
=== Required Arguments ===
*'''blip:''' Blip
===Return value===
===Return value===
*'''Boolean'''
* {{RageType|Boolean}}
==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.setFlashes(true);
 
let isBlipFlashing = policeBlip.isFlashing();
mp.gui.chat.push("Is Flashing: " + isBlipFlashing); //Output: "Is Flashing: true"
</syntaxhighlight>
</syntaxhighlight>
}}
==See also==
==See also==
{{Blip_s_function_c}}
{{Blip_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Blip API]]
[[Category:Blip API]]
[[Category:TODO: Example]]
[[Category:Client-side Function]]

Latest revision as of 08:29, 6 May 2019