Blip::addTextComponentSubstringName: Difference between revisions
m (Replaced HTML with template) |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 8: | Line 8: | ||
== Example == | == Example == | ||
Only works with 'addTextComponentSubstringPlayerName' | |||
{{ClientsideCode| | {{ClientsideCode| | ||
<pre> | <pre> | ||
let blip = mp.blips.at(0); | |||
mp.game.ui.beginTextCommandSetBlipName("STRING"); | |||
mp.game.ui.addTextComponentSubstringPlayerName('TEST'); | |||
blip.endTextCommandSetName(); | |||
</pre> | </pre> | ||
}} | }} | ||
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