Blip::Blip: Difference between revisions
No edit summary |
CocaColaBear (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="typescript"> | <syntaxhighlight lang="typescript"> | ||
void mp.blips.new(int | void mp.blips.new(int model, Vector3 position); | ||
void mp.blips.newStreamed(int | void mp.blips.newStreamed(int model, Vector3 position, int radius); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''model:''' ID model. ''(All models available on [[Blips]] page)'' | ||
*'''position:''' Blip position on map. | *'''position:''' Blip position on map. | ||
*'''radius:''' Blip visible radius. | *'''radius:''' Blip visible radius. | ||
==Example== | ==Example== | ||
That's example will create blip with | That's example will create blip with model ID 140 (Cannabis icon). | ||
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;"> | <div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;"> | ||
Revision as of 11:29, 31 August 2017
This function used for create new blip.
Syntax
void mp.blips.new(int model, Vector3 position);
void mp.blips.newStreamed(int model, Vector3 position, int radius);
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));