Blip::setAsFriendly: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
false for enemy<br>true for friendly
Function to set a blip as friendly.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">blip.setAsFriendly(toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">blip.setAsFriendly(toggle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''toggle:''' Boolean
* '''toggle:''' {{RageType|Boolean}} <code>true</code> to set as friendly (blue) or <code>false</code> for the opposite (red)
===Return value===
===Return value===
*'''Undefined'''
* '''Undefined'''
==Example==
==Example==
{{ClientsideCode|
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
let criminalBlip = mp.blips.new(1, new mp.Vector3(407.95, -961.05, 0));
criminalBlip.setAsFriendly(false);
</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:47, 6 May 2019