HUDClient

addTextComponentSubstringPlayerName

ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME0x6C188BE134E074AA

The GTA V native ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME of the HUD namespace, as LS:MP client scripts call it: the global function addTextComponentSubstringPlayerName, in JavaScript and in Lua.

SignatureJavaScript
addTextComponentSubstringPlayerName(text: string): void
SignatureLua
addTextComponentSubstringPlayerName(text: string)

Usage

JavaScript
addTextComponentSubstringPlayerName(text);
Lua
addTextComponentSubstringPlayerName(text)

Parameters

ParameterTypeJavaScriptLua
textstringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(const char* text)
Hash
0x6C188BE134E074AA
Formerly
_ADD_TEXT_COMPONENT_STRING

Open in the interactive natives reference