_REQUEST_ENTITY_LOOT_LIST
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
BOOL _REQUEST_ENTITY_LOOT_LIST(Ped mount, Any* argStruct, Hash visiblelootslotrequestType, int flag, int p4, BOOL p5); // 0xA88E215CEB0435C0 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | mount | Ped |
| 2 | argStruct | Any* (out pointer) |
| 3 | visiblelootslotrequestType | Hash |
| 4 | flag | int |
| 5 | p4 | int |
| 6 | p5 | BOOL |
Facts
| 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.
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
-- ...
endconst [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) {
// ...
}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>();Related ENTITY natives
- _REQUEST_ENTITY_VISIBILITY_TRACKING
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- _GET_SCRIPT_OVERRIDE_ENTITY_LOOT_TABLE_PERMANENT
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- CLEAR_ENTITY_LAST_DAMAGE_ENTITY
- HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- IS_ENTITY_A_MISSION_ENTITY
- IS_ENTITY_AT_ENTITY
- IS_ENTITY_ATTACHED_TO_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.