_GET_TEXT_SUBSTRING_2
Similar to 0x9D7E12EC6A1EE4E5(GET_TEXT_SUBSTRING) but starts at the beginning of the string _GET_FILE* - _GET_FRAME*
Hash
0xD8402B858F4DDD88Runtime name
GetTextSubstring_2NamespaceHUD
SideClient
NameCommunity guess
Docs
Since build1207
Signature
const char* _GET_TEXT_SUBSTRING_2(const char* text, int length);Parameters
| Name | Type | Description |
|---|---|---|
text | const char* | — |
length | int | — |
Returns const char*
Description
Similar to 0x9D7E12EC6A1EE4E5(GET_TEXT_SUBSTRING) but starts at the beginning of the string
_GET_FILE* - _GET_FRAME*
Usage
local retval = GetTextSubstring_2(text, length)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD8402B858F4DDD88, text, length, Citizen.ResultAsString())JavaScript and C#
const retval = GetTextSubstring_2(text, length);
// by hash
const retval = Citizen.invokeNative('0xD8402B858F4DDD88', text, length, Citizen.returnResultAnyway(), Citizen.resultAsString());string retval = Function.Call<string>((Hash)0xD8402B858F4DDD88, text, length);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.