The Lab
DATAFILE native

_PARSEDDATA_GET_SECTION

returns BOOL3 paramsbuild 1207

Based on its name and signature, here is our best reading:

Looks up the section identified by section in parsed data and returns true if it exists.

Signature

C
BOOL _PARSEDDATA_GET_SECTION(Hash* p0, Any* p1, Hash section); // 0x44B3A36933AC009C b1207

Parameters

#NameType
1p0Hash* (out pointer)
2p1Any* (out pointer)
3sectionHash

Facts

Facts about _PARSEDDATA_GET_SECTION
Name
_PARSEDDATA_GET_SECTION
Hash
0x44B3A36933AC009C
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result, p0, p1 = Citizen.InvokeNative(0x44B3A36933AC009C, -- _PARSEDDATA_GET_SECTION
  Citizen.PointerValueInt(), -- Hash* p0
  Citizen.PointerValueInt(), -- Any* p1
  GetHashKey("name"), -- Hash section
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, p0, p1] = Citizen.invokeNative("0x44B3A36933AC009C", // _PARSEDDATA_GET_SECTION
  Citizen.pointerValueInt(), // Hash* p0
  Citizen.pointerValueInt(), // Any* p1
  GetHashKey("name"), // Hash section
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var p0Arg = new OutputArgument();
var p1Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x44B3A36933AC009C, // _PARSEDDATA_GET_SECTION
  p0Arg, // Hash* p0
  p1Arg, // Any* p1
  (uint)API.GetHashKey("name") // Hash section
);
int p0 = p0Arg.GetResult<int>();
int p1 = p1Arg.GetResult<int>();
All DATAFILE natives

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