The Lab
HUD native

_GET_TEXT_SUBSTRING_3

returns const char*3 paramsbuild 1207

Returns length characters of text starting at position begin.

Signature

C
const char* _GET_TEXT_SUBSTRING_3(const char* text, int begin, int length); // 0x806862E5D266CF38 b1207

Parameters

#NameType
1textconst char*
2beginint
3lengthint

Facts

Facts about _GET_TEXT_SUBSTRING_3
Name
_GET_TEXT_SUBSTRING_3
Hash
0x806862E5D266CF38
Namespace
Returns
const char*
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x806862E5D266CF38, -- _GET_TEXT_SUBSTRING_3
  "text", -- const char* text
  0, -- int begin
  0, -- int length
  Citizen.ResultAsString()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x806862E5D266CF38", // _GET_TEXT_SUBSTRING_3
  "text", // const char* text
  0, // int begin
  0, // int length
  Citizen.resultAsString()
);
console.log(result)
C#
string result = Function.Call<string>((Hash)0x806862E5D266CF38, // _GET_TEXT_SUBSTRING_3
  "text", // const char* text
  0, // int begin
  0 // int length
);
All HUD natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.