RedM Natives

_GET_TEXT_SUBSTRING_3

_GET_BOUNTY* - _GET_CHARACTER*

Hash0x806862E5D266CF38
Runtime nameGetTextSubstring_3
NamespaceHUD
SideClient
NameCommunity guess
Docs
Since build1207

Signature

const char* _GET_TEXT_SUBSTRING_3(const char* text, int begin, int length);

Parameters

NameTypeDescription
textconst char*—
beginint—
lengthint—

Returns const char*

Description

alloc8or RDR3 NativeDB

_GET_BOUNTY* - _GET_CHARACTER*

VORPCORE RDR3natives

Example: HUD::_0x806862E5D266CF38(&string1, 0, HUD::GET_LENGTH_OF_LITERAL_STRING(&string1) - HUD::GET_LENGTH_OF_LITERAL_STRING("_DUALWIELD"))

Usage

Lua
local retval = GetTextSubstring_3(text, begin, length)

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

// by hash
const retval = Citizen.invokeNative('0x806862E5D266CF38', text, begin, length, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0x806862E5D266CF38, text, begin, 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 · VORPCORE RDR3natives

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