Blip::sprite: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


==Syntax==
==Syntax==
<syntaxhighlight lang="typescript">
<pre>
blip.sprite = 40;
blip.sprite = 40;
</syntaxhighlight>
</pre>


==Example==  
==Example==  
This will change a blip to a house.
This will change a blip to a house.


<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
{{ServersideCode|
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<pre>
<syntaxhighlight lang="javascript">
let createdBlip = mp.blips.new(1, new mp.Vector3(0, 0, 0));
let createdBlip = mp.blips.new(1, new mp.Vector3(0, 0, 0));


createdBlip.sprite = 40;
createdBlip.sprite = 40;
</syntaxhighlight>
</pre>
</div>
}}


==Blip sprites==
==Blip sprites==
[[Blips]]
{{Blips_model}}


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

Latest revision as of 13:53, 24 May 2019

This function is used to change the blip sprite.

Syntax

blip.sprite = 40;

Example

This will change a blip to a house.

Server-Side
let createdBlip = mp.blips.new(1, new mp.Vector3(0, 0, 0));

createdBlip.sprite = 40;

Blip sprites

See also