GET_LENGTH_OF_LITERAL_STRING
Returns the length of the string passed (much like strlen).
Hash
0x481FBF588B0B76DBRuntime name
GetLengthOfLiteralStringNamespaceHUD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xF030907CCBB8A9FDSignature
int GET_LENGTH_OF_LITERAL_STRING(const char* string);Parameters
| Name | Type | Description |
|---|---|---|
string | const char* | — |
Returns int
Description
Returns the length of the string passed (much like strlen).
Usage
local retval = GetLengthOfLiteralString(string)
-- always works, by hash
local retval = Citizen.InvokeNative(0x481FBF588B0B76DB, string, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetLengthOfLiteralString(string);
// by hash
const retval = Citizen.invokeNative('0x481FBF588B0B76DB', string, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x481FBF588B0B76DB, string);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.