HUDClient

getLengthOfStringWithThisTextLabel

GET_LENGTH_OF_STRING_WITH_THIS_TEXT_LABEL0x801BD273D3A23F74

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

SignatureJavaScript
getLengthOfStringWithThisTextLabel(gxt: string): number
SignatureLua
getLengthOfStringWithThisTextLabel(gxt: string): integer

Usage

JavaScript
const result = getLengthOfStringWithThisTextLabel(gxt);
Lua
local result = getLengthOfStringWithThisTextLabel(gxt)

Parameters

ParameterTypeJavaScriptLua
gxtstringstringstring

Returns

int JavaScript number, Lua integer

Notes

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

Returns the string length of the string from the gxt string .

Reference

Namespace
HUD HUD
In the game
int GET_LENGTH_OF_STRING_WITH_THIS_TEXT_LABEL(const char* gxt)
Hash
0x801BD273D3A23F74

Open in the interactive natives reference