Blip::addTextComponentSubstringName: Difference between revisions
MrPancakers (talk | contribs) m (Returned Value) |
|||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
== Syntax == | == Syntax == | ||
<pre> | |||
< | |||
blip.addTextComponentSubstringName(); | blip.addTextComponentSubstringName(); | ||
</ | </pre> | ||
=== Returned Values === | === Returned Values === | ||
* '''Undefined''' | * '''Undefined''' | ||
== Example == | == Example == | ||
Only works with 'addTextComponentSubstringPlayerName' | |||
{{ClientsideCode| | |||
<pre> | |||
let blip = mp.blips.at(0); | |||
mp.game.ui.beginTextCommandSetBlipName("STRING"); | |||
mp.game.ui.addTextComponentSubstringPlayerName('TEST'); | |||
blip.endTextCommandSetName(); | |||
</pre> | |||
</ | }} | ||
== See Also == | == See Also == | ||
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
- Functions
- Properties