Blip::addTextComponentSubstringName: Difference between revisions

From RAGE Multiplayer Wiki
m (Replaced HTML with template)
Line 10: Line 10:
{{ClientsideCode|
{{ClientsideCode|
<pre>
<pre>
// todo
let blip = mp.blips.at(0);
 
mp.game.ui.beginTextCommandSetBlipName("STRING");
mp.game.ui.addTextComponentSubstringPlayerName('TEST');
blip.endTextCommandSetName();
</pre>
</pre>
}}
}}

Revision as of 16:50, 2 January 2019

Syntax

blip.addTextComponentSubstringName();

Returned Values

  • Undefined

Example

Client-Side
let blip = mp.blips.at(0);

mp.game.ui.beginTextCommandSetBlipName("STRING");
mp.game.ui.addTextComponentSubstringPlayerName('TEST');
blip.endTextCommandSetName();

See Also