Blip::Blip: Difference between revisions
(Removing the table of contents) |
m (grammar nazi stuff) |
||
| Line 7: | Line 7: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Returns=== | ===Returns=== | ||
Return a blip entity, | Return a blip entity, which can be used with blip methods and parameters, like a [[Entity::type|blip.type]], [[Entity::destroy|blip.destroy()]] and others. | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''model:''' ID model. ''(All models available on [[Blips]] page)'' | *'''model:''' ID model. ''(All models available on [[Blips]] page)'' | ||
Revision as of 17:17, 27 December 2017
This function used for create new blip.
Syntax
Blip mp.blips.new(Number model, Vector3 position);
Blip mp.blips.newStreamed(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));