getLengthOfStringWithThisTextLabel
GET_LENGTH_OF_STRING_WITH_THIS_TEXT_LABEL0x801BD273D3A23F74The 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.
getLengthOfStringWithThisTextLabel(gxt: string): numbergetLengthOfStringWithThisTextLabel(gxt: string): integerUsage
JavaScript
const result = getLengthOfStringWithThisTextLabel(gxt);Lua
local result = getLengthOfStringWithThisTextLabel(gxt)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
gxt | string | string | string |
Returns
int JavaScript number, Lua integerNotes
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