Blip::addTextComponentSubstringName: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Syntax ==
<pre>
blip.addTextComponentSubstringName();
</pre>


==Syntax==
=== Returned Values ===  
<syntaxhighlight lang="javascript">blip.addTextComponentSubstringName(blip);</syntaxhighlight>
* '''Undefined'''
=== Required Arguments ===
 
*'''blip:''' Blip
== Example ==
===Return value===
Only works with 'addTextComponentSubstringPlayerName'
*'''Undefined'''
{{ClientsideCode|
==Example==
<pre>
<syntaxhighlight lang="javascript">
let blip = mp.blips.at(0);
// todo
 
</syntaxhighlight>
mp.game.ui.beginTextCommandSetBlipName("STRING");
==See also==
mp.game.ui.addTextComponentSubstringPlayerName('TEST');
{{Blip_s_function_c}}
blip.endTextCommandSetName();
</pre>
}}
 
== See Also ==
{{Blip_definition}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Blip API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 16:51, 2 January 2019

Syntax

blip.addTextComponentSubstringName();

Returned Values

  • Undefined

Example

Only works with 'addTextComponentSubstringPlayerName'

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

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

See Also