The Lab
DATAFILE native

DATAFILE_GET_FILE_DICT

returns Any*1 parambuild 1207

Returns the root dictionary of the data file in slot index.

Pass the result to the DATADICT_GET_* natives to read values.

Signature

C
Any* DATAFILE_GET_FILE_DICT(int index); // 0xBBD8CF823CAE557C b1207

Parameters

#NameType
1indexint

Facts

Facts about DATAFILE_GET_FILE_DICT
Name
DATAFILE_GET_FILE_DICT
Hash
0xBBD8CF823CAE557C
Namespace
Returns
Any*
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(0xBBD8CF823CAE557C, -- DATAFILE_GET_FILE_DICT
  0, -- int index
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xBBD8CF823CAE557C", // DATAFILE_GET_FILE_DICT
  0, // int index
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xBBD8CF823CAE557C, // DATAFILE_GET_FILE_DICT
  0 // int index
);
All DATAFILE natives

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