Blip::name: Difference between revisions
(Created page with "{{Incomplete Functions}}") |
MrPancakers (talk | contribs) m (Using old blip template) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | 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== | |||
<syntaxhighlight lang="typescript"> | |||
blip.name = 'String'; | |||
</syntaxhighlight> | |||
==Example== | |||
This will change a blip's name to 24/7 Shop. | |||
{{ServerSide}} | |||
<syntaxhighlight lang="javascript"> | |||
let createdBlip = mp.blips.new(140, new mp.Vector3(0, 0, 0)); | |||
createdBlip.name = '24/7 Shop'; | |||
</syntaxhighlight> | |||
==See Also== | |||
{{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
- Functions
- Properties