The Lab
HUD native

_GET_TEXT_SUBSTRING_2

returns const char*2 paramsbuild 1207

Returns the first length characters of text.

Signature

C
const char* _GET_TEXT_SUBSTRING_2(const char* text, int length); // 0xD8402B858F4DDD88 b1207

Parameters

#NameType
1textconst char*
2lengthint

Facts

Facts about _GET_TEXT_SUBSTRING_2
Name
_GET_TEXT_SUBSTRING_2
Hash
0xD8402B858F4DDD88
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(0xD8402B858F4DDD88, -- _GET_TEXT_SUBSTRING_2
  "text", -- const char* text
  0, -- int length
  Citizen.ResultAsString()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xD8402B858F4DDD88", // _GET_TEXT_SUBSTRING_2
  "text", // const char* text
  0, // int length
  Citizen.resultAsString()
);
console.log(result)
C#
string result = Function.Call<string>((Hash)0xD8402B858F4DDD88, // _GET_TEXT_SUBSTRING_2
  "text", // const char* text
  0 // int length
);
All HUD natives

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