Blip::doesExist: Difference between revisions

From RAGE Multiplayer Wiki
m (Added Blip API category)
mNo edit summary
Line 15: Line 15:
An example of returning true of a blip exists.
An example of returning true of a blip exists.


<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
let policeBlip_Client = mp.blips.new(60, new mp.Vector3(407.95, -961.05, 0),
let policeBlip_Client = mp.blips.new(60, new mp.Vector3(407.95, -961.05, 0),
Line 27: Line 29:
//Output: "Exist: 1"
//Output: "Exist: 1"
</syntaxhighlight>
</syntaxhighlight>
</div>


== See Also ==
== See Also ==

Revision as of 11:01, 11 May 2018

Client-Side

A property 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