Blip::doesExist: Difference between revisions
MrPancakers (talk | contribs) mNo edit summary |
m (Replaced HTML with template) |
||
| Line 2: | Line 2: | ||
== Syntax == | == Syntax == | ||
< | <pre> | ||
blip.doesExist(); | blip.doesExist(); | ||
</ | </pre> | ||
===Return value=== | ===Return value=== | ||
| Line 10: | Line 10: | ||
== Examples == | == Examples == | ||
An example of returning true of a blip exists. | An example of returning true of a blip exists. | ||
{{ClientsideCode| | |||
< | <pre> | ||
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), | color: 3, | ||
shortRange: true, | |||
}); | }); | ||
let doesExist = policeBlip_Client.doesExist(); | let doesExist = policeBlip_Client.doesExist(); | ||
mp.gui.chat.push("Exist: " + doesExist); | mp.gui.chat.push("Exist: " + doesExist); | ||
//Output: "Exist: 1" | //Output: "Exist: 1" | ||
</ | </pre> | ||
}} | |||
== See Also == | == See Also == | ||
Revision as of 13:11, 26 October 2018
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
- Functions
- Properties