_LOOT_GET_RESULT_ITEM
Based on its name and signature, here is our best reading:
Appears to read the resulting loot item at itemIndex from the server response rpcGuid into outResultItem.
Signature
BOOL _LOOT_GET_RESULT_ITEM(Any* rpcGuid, int itemIndex, Any* outResultItem); // 0x4293B44A855F82CC b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | rpcGuid | Any* (out pointer) |
| 2 | itemIndex | int |
| 3 | outResultItem | Any* (out pointer) |
Facts
| Name | _LOOT_GET_RESULT_ITEM |
|---|---|
| Hash | 0x4293B44A855F82CC |
| 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, rpcGuid, outResultItem = Citizen.InvokeNative(0x4293B44A855F82CC, -- _LOOT_GET_RESULT_ITEM
Citizen.PointerValueInt(), -- Any* rpcGuid
0, -- int itemIndex
Citizen.PointerValueInt(), -- Any* outResultItem
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, rpcGuid, outResultItem] = Citizen.invokeNative("0x4293B44A855F82CC", // _LOOT_GET_RESULT_ITEM
Citizen.pointerValueInt(), // Any* rpcGuid
0, // int itemIndex
Citizen.pointerValueInt(), // Any* outResultItem
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var rpcGuidArg = new OutputArgument();
var outResultItemArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x4293B44A855F82CC, // _LOOT_GET_RESULT_ITEM
rpcGuidArg, // Any* rpcGuid
0, // int itemIndex
outResultItemArg // Any* outResultItem
);
int rpcGuid = rpcGuidArg.GetResult<int>();
int outResultItem = outResultItemArg.GetResult<int>();Related SCRIPT natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.