Blip::Blip: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 3: Line 3:
==Syntax==
==Syntax==
<syntaxhighlight lang="typescript">
<syntaxhighlight lang="typescript">
void mp.blips.new(int model, Vector3 position);
blip mp.blips.new(int model, Vector3 position);
void mp.blips.newStreamed(int model, Vector3 position, int radius);
blip mp.blips.newStreamed(int model, Vector3 position, int radius);
</syntaxhighlight>  
</syntaxhighlight>  
===Returns===
Return a blip entity, what 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 14:50, 26 September 2017

This function used for create new blip.

Syntax

blip mp.blips.new(int model, Vector3 position);
blip mp.blips.newStreamed(int model, Vector3 position, int 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));

See Also