RedM Natives

_GET_TEXT_SUBSTRING_2

Similar to 0x9D7E12EC6A1EE4E5(GET_TEXT_SUBSTRING) but starts at the beginning of the string _GET_FILE* - _GET_FRAME*

Hash0xD8402B858F4DDD88
Runtime nameGetTextSubstring_2
NamespaceHUD
SideClient
NameCommunity guess
Docs
Since build1207

Signature

const char* _GET_TEXT_SUBSTRING_2(const char* text, int length);

Parameters

NameTypeDescription
textconst char*—
lengthint—

Returns const char*

Description

Similar to 0x9D7E12EC6A1EE4E5(GET_TEXT_SUBSTRING) but starts at the beginning of the string
_GET_FILE* - _GET_FRAME*

Usage

Lua
local retval = GetTextSubstring_2(text, length)

-- always works, by hash
local retval = Citizen.InvokeNative(0xD8402B858F4DDD88, text, length, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = GetTextSubstring_2(text, length);

// by hash
const retval = Citizen.invokeNative('0xD8402B858F4DDD88', text, length, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.