Blip::Blip: Difference between revisions
m (grammar nazi stuff) |
No edit summary |
||
| Line 2: | Line 2: | ||
This function used for create new blip. | This function used for create new blip. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="javascript"> | ||
mp.blips.new(Number model, Vector3 position [, Number radius]); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
===Returns=== | ===Returns=== | ||
Revision as of 17:20, 27 December 2017
This function used for create new blip.
Syntax
mp.blips.new(Number model, Vector3 position [, Number radius]);
Returns
Return a blip entity, which can be used with blip methods and parameters, like a blip.type, blip.destroy() and others.
Required Arguments
- model: ID model. (All models available on Blips page)
- position: Blip position on map.
- radius: Blip visible radius.
Example
That's example will create blip with model ID 140 (Cannabis icon).
Server-Side
let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0));