Blip::Blip: Difference between revisions
No edit summary |
(Removing the table of contents) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | |||
This function used for create new blip. | This function used for create new blip. | ||
==Syntax== | ==Syntax== | ||
Revision as of 15:26, 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, what 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));