Blip::setRoute: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Enable / disable showing route for the Blip-object.
Enable / disable showing route for the Blip-object.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">blip.setRoute(blip, enabled);</syntaxhighlight>
<syntaxhighlight lang="javascript">blip.setRoute(enabled);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''blip:''' Blip
*'''enabled:''' Boolean
*'''enabled:''' Boolean
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
{{ClientsideCode|
// todo
<pre>
</syntaxhighlight>
var policeStation = mp.blips.new(526, new mp.Vector3(433.25567626953125,-981.8964233398438, 30.710012435913086),
{
    color: 5,
    shortRange: false,
    dimension: mp.players.local.dimension
});
 
 
policeStation.setRoute(true) // SetRoute for police station
</pre>
}}
==See also==
==See also==
{{Blip_s_function_c}}
{{Blip_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Blip API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 14:06, 17 May 2020