Blip::setAsShortRange: 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 set a blip as short range (gone when it is not in minimap range)
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">blip.setAsShortRange(blip, toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">blip.setAsShortRange(toggle);</syntaxhighlight>
=== Required Arguments ===
===Required Argument===
*'''blip:''' Blip
* '''toggle:''' {{RageType|Boolean}}
*'''toggle:''' Boolean
===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.setAsShortRange(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:51, 6 May 2019