GET_LENGTH_OF_LITERAL_STRING
Returns the number of characters in string.
Signature
int GET_LENGTH_OF_LITERAL_STRING(const char* string); // 0x481FBF588B0B76DB b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | string | const char* |
Facts
| Name | GET_LENGTH_OF_LITERAL_STRING |
|---|---|
| Hash | 0x481FBF588B0B76DB |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x481FBF588B0B76DB, -- GET_LENGTH_OF_LITERAL_STRING
"text", -- const char* string
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x481FBF588B0B76DB", // GET_LENGTH_OF_LITERAL_STRING
"text", // const char* string
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x481FBF588B0B76DB, // GET_LENGTH_OF_LITERAL_STRING
"text" // const char* string
);Related HUD natives
- GET_LENGTH_OF_LITERAL_STRING_IN_BYTES
- GET_STRING_FROM_HASH_KEY
- GET_CHARACTER_FROM_AUDIO_CONVERSATION_FILENAME
- GET_FILENAME_FOR_AUDIO_CONVERSATION
- GET_HUD_SCREEN_POSITION_FROM_WORLD_POSITION
- GET_NAMED_RENDERTARGET_RENDER_ID
- _GET_COLOR_FROM_NAME
- _GET_HUD_VISIBILITY_SLOT_STATE
- _GET_LABEL_TEXT_2
- _GET_TEXT_SUBSTRING_2
- _GET_TEXT_SUBSTRING_3
- _HUD_GET_INVENTORY_WHEEL_CURRENTLY_HIGHLIGHTED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.