The Lab
DATAFILE native

DATAARRAY_GET_STRING

returns const char*2 paramsbuild 1207

Returns the string stored at arrayIndex in the data array arrayData.

Signature

C
const char* DATAARRAY_GET_STRING(Any* arrayData, int arrayIndex); // 0xB6790A8FF80F889F b1207

Parameters

#NameType
1arrayDataAny* (out pointer)
2arrayIndexint

Facts

Facts about DATAARRAY_GET_STRING
Name
DATAARRAY_GET_STRING
Hash
0xB6790A8FF80F889F
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, arrayData = Citizen.InvokeNative(0xB6790A8FF80F889F, -- DATAARRAY_GET_STRING
  Citizen.PointerValueInt(), -- Any* arrayData
  0, -- int arrayIndex
  Citizen.ResultAsString()
)
print(result, arrayData)
JavaScript
const [result, arrayData] = Citizen.invokeNative("0xB6790A8FF80F889F", // DATAARRAY_GET_STRING
  Citizen.pointerValueInt(), // Any* arrayData
  0, // int arrayIndex
  Citizen.resultAsString()
);
console.log(result, arrayData)
C#
var arrayDataArg = new OutputArgument();
string result = Function.Call<string>((Hash)0xB6790A8FF80F889F, // DATAARRAY_GET_STRING
  arrayDataArg, // Any* arrayData
  0 // int arrayIndex
);
int arrayData = arrayDataArg.GetResult<int>();
All DATAFILE natives

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