Blip::doesExist: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (category)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
A function to check if a blip exists.
== Syntax ==
<pre>
blip.doesExist();
</pre>


==Syntax==
<syntaxhighlight lang="javascript">blip.doesExist(blip);</syntaxhighlight>
=== Required Arguments ===
*'''blip:''' Blip
===Return value===
===Return value===
*'''Boolean'''
* {{RageType|Boolean}}
==Example==
 
<syntaxhighlight lang="javascript">
== Examples ==
// todo
An example of returning true of a blip exists.
</syntaxhighlight>
 
==See also==
{{ClientsideCode|
{{Blip_s_function_c}}
<pre>
let policeBlip_Client = mp.blips.new(60, new mp.Vector3(407.95, -961.05, 0), {
    color: 3,
    shortRange: true,
});
 
let doesExist = policeBlip_Client.doesExist();
mp.gui.chat.push("Exist: " + doesExist); //Output: "Exist: 1"
</pre>
}}
 
== See Also ==
{{Blip_definition}}
 
 
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Blip API]]
[[Category:Blip API]]
[[Category:TODO: Example]]
[[Category:Client-side Function]]

Latest revision as of 08:18, 6 May 2019

A function to check if a blip exists.

Syntax

blip.doesExist();

Return value

  • Boolean

Examples

An example of returning true of a blip exists.

Client-Side
let policeBlip_Client = mp.blips.new(60, new mp.Vector3(407.95, -961.05, 0), {
    color: 3,
    shortRange: true,
});

let doesExist = policeBlip_Client.doesExist();
mp.gui.chat.push("Exist: " + doesExist); //Output: "Exist: 1"

See Also