Blip::isShortRange: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Function to find out whether blip is [[Blip::setAsShortRange|set as short range]].
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">blip.isShortRange(blip);</syntaxhighlight>
<syntaxhighlight lang="javascript">blip.isShortRange();</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), {
    color: 3,
    shortRange: true,
});
 
let isBlipShortRange = policeBlip.isShortRange();
mp.gui.chat.push("Is blip short range? " + isBlipShortRange ); // Output: "Is blip short range? true"
</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:39, 6 May 2019