Blip::Blip: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
This function used for create new blip.
'''Function''': Creates a blip.
==Parameters==
*'''model''': {{RageType|Number}} [[Blips#Blip_model|(Blips model)]]
*'''position''': {{RageType|Vector3}}
*'''radius''': {{RageType|Number}}
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.blips.new(Number model, Vector3 position [, Number radius]);
mp.blips.new(model, position [, radius]);
</syntaxhighlight>  
</syntaxhighlight>  
===Returns===
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===
*'''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).
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0));
</syntaxhighlight>
</div>


==See Also==
==See Also==
{{Blip_function}}
{{Blip_definition}}

Revision as of 17:32, 27 December 2017