Blip::doesExist: Difference between revisions
No edit summary |
MrPancakers (talk | contribs) (Added an example, added the blip definitions) |
||
| Line 1: | Line 1: | ||
{{ClientSide}} | |||
A property to check if a blip exists. | |||
== Syntax == | |||
<syntaxhighlight lang="javascript"> | |||
blip.doesExist(); | |||
</syntaxhighlight> | |||
===Return value=== | ===Return value=== | ||
*'''Boolean''' | *'''Boolean''' | ||
== | |||
== Examples == | |||
An example of returning true of a blip exists. | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
// | 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" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See | |||
{{ | == See Also == | ||
{{Blip_definition}} | |||
Revision as of 10:33, 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.
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
- Functions
- Properties