Blip::doesExist: Difference between revisions
m (Replaced HTML with template) |
m (category) |
||
| Line 1: | Line 1: | ||
A | A function to check if a blip exists. | ||
== Syntax == | == Syntax == | ||
| Line 7: | Line 7: | ||
===Return value=== | ===Return value=== | ||
* | * {{RageType|Boolean}} | ||
== Examples == | == Examples == | ||
| Line 20: | Line 20: | ||
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> | </pre> | ||
}} | }} | ||
| Line 27: | Line 26: | ||
== See Also == | == See Also == | ||
{{Blip_definition}} | {{Blip_definition}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:Blip API]] | [[Category:Blip API]] | ||
[[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
- Functions
- Properties