The Lab
ENTITY native

_REQUEST_ENTITY_LOOT_LIST

returns BOOL6 paramsbuild 1207

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

Requests the loot list for an entity using a packed argument structure. Most parameters are not documented.

Signature

C
BOOL _REQUEST_ENTITY_LOOT_LIST(Ped mount, Any* argStruct, Hash visiblelootslotrequestType, int flag, int p4, BOOL p5); // 0xA88E215CEB0435C0 b1207

Parameters

#NameType
1mountPed
2argStructAny* (out pointer)
3visiblelootslotrequestTypeHash
4flagint
5p4int
6p5BOOL

Facts

Facts about _REQUEST_ENTITY_LOOT_LIST
Name
_REQUEST_ENTITY_LOOT_LIST
Hash
0xA88E215CEB0435C0
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, argStruct = Citizen.InvokeNative(0xA88E215CEB0435C0, -- _REQUEST_ENTITY_LOOT_LIST
  PlayerPedId(), -- Ped mount
  Citizen.PointerValueInt(), -- Any* argStruct
  GetHashKey("name"), -- Hash visiblelootslotrequestType
  0, -- int flag
  0, -- int p4
  false, -- BOOL p5
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, argStruct] = Citizen.invokeNative("0xA88E215CEB0435C0", // _REQUEST_ENTITY_LOOT_LIST
  PlayerPedId(), // Ped mount
  Citizen.pointerValueInt(), // Any* argStruct
  GetHashKey("name"), // Hash visiblelootslotrequestType
  0, // int flag
  0, // int p4
  false, // BOOL p5
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var argStructArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xA88E215CEB0435C0, // _REQUEST_ENTITY_LOOT_LIST
  API.PlayerPedId(), // Ped mount
  argStructArg, // Any* argStruct
  (uint)API.GetHashKey("name"), // Hash visiblelootslotrequestType
  0, // int flag
  0, // int p4
  false // BOOL p5
);
int argStruct = argStructArg.GetResult<int>();
All ENTITY natives

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