Description: Returns the length of the string passed (much like strlen).
| Property | Value |
|---|---|
| Native Name | GET_LENGTH_OF_LITERAL_STRING |
| Hash | 0x481FBF588B0B76DB |
| Return Type | int |
| Build | 1207 |
| Parameters | string (const char*) |
Parameters
string(const char*)
Usage
Lua (Direct):
local result = GetLengthOfLiteralString(string)
Lua (Hash):
local result = Citizen.InvokeNative(0x481FBF588B0B76DB, string)