GET_LENGTH_OF_LITERAL_STRING_IN_BYTES
Hash
0xDC5AD6B7AB8184F5Runtime name
GetLengthOfLiteralStringInBytesNamespaceHUD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x43E4111189E54F0ESignature
int GET_LENGTH_OF_LITERAL_STRING_IN_BYTES(const char* string);Parameters
| Name | Type | Description |
|---|---|---|
string | const char* | — |
Returns int
Usage
local retval = GetLengthOfLiteralStringInBytes(string)
-- always works, by hash
local retval = Citizen.InvokeNative(0xDC5AD6B7AB8184F5, string, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetLengthOfLiteralStringInBytes(string);
// by hash
const retval = Citizen.invokeNative('0xDC5AD6B7AB8184F5', string, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xDC5AD6B7AB8184F5, string);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.