Blip::name: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (Using old blip template)
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
This will change a blip's name to 24/7 Shop.
This will change a blip's name to 24/7 Shop.


<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
{{ServerSide}}
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0));
let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0));
Line 16: Line 15:
createdBlip.name = '24/7 Shop';
createdBlip.name = '24/7 Shop';
</syntaxhighlight>
</syntaxhighlight>
</div>


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

Latest revision as of 11:47, 10 May 2018

This function is used to change the name of the blip shown on the map. When you press Esc and hover over the blip, it will have this name.

Syntax

blip.name = 'String';

Example

This will change a blip's name to 24/7 Shop.

Server-Side

let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0));

createdBlip.name = '24/7 Shop';

See Also