HUDClient

addTextComponentSubstringPhoneNumber

ADD_TEXT_COMPONENT_SUBSTRING_PHONE_NUMBER0x761B77454205A61D

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

SignatureJavaScript
addTextComponentSubstringPhoneNumber(p0: string, p1: number): void
SignatureLua
addTextComponentSubstringPhoneNumber(p0: string, p1: integer)

Usage

JavaScript
addTextComponentSubstringPhoneNumber(p0, p1);
Lua
addTextComponentSubstringPhoneNumber(p0, p1)

Parameters

ParameterTypeJavaScriptLua
p0stringstringstring
p1intnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

p1 was always -1

Reference

Namespace
HUD HUD
In the game
void ADD_TEXT_COMPONENT_SUBSTRING_PHONE_NUMBER(const char* p0, int p1)
Hash
0x761B77454205A61D
Formerly
_ADD_TEXT_COMPONENT_APP_TITLE

Open in the interactive natives reference