The Lab
INVENTORY native

_INVENTORY_COPY_ITEM_TO_INVENTORY

returns void4 paramsbuild 1207

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

Copies an item from inventory inventoryId into inventoryIdCloned.

Signature

C
void _INVENTORY_COPY_ITEM_TO_INVENTORY(int inventoryId, int inventoryIdCloned, Any* p2, Any p3); // 0xC04F47D488EF9EBA b1207

Parameters

#NameType
1inventoryIdint
2inventoryIdClonedint
3p2Any* (out pointer)
4p3Any

Facts

Facts about _INVENTORY_COPY_ITEM_TO_INVENTORY
Name
_INVENTORY_COPY_ITEM_TO_INVENTORY
Hash
0xC04F47D488EF9EBA
Namespace
Returns
void
Game build
1207

Examples

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

Lua
local p2 = Citizen.InvokeNative(0xC04F47D488EF9EBA, -- _INVENTORY_COPY_ITEM_TO_INVENTORY
  0, -- int inventoryId
  0, -- int inventoryIdCloned
  Citizen.PointerValueInt(), -- Any* p2
  0 -- Any p3
)
print(p2)
JavaScript
const p2 = Citizen.invokeNative("0xC04F47D488EF9EBA", // _INVENTORY_COPY_ITEM_TO_INVENTORY
  0, // int inventoryId
  0, // int inventoryIdCloned
  Citizen.pointerValueInt(), // Any* p2
  0 // Any p3
);
console.log(p2)
C#
var p2Arg = new OutputArgument();
Function.Call((Hash)0xC04F47D488EF9EBA, // _INVENTORY_COPY_ITEM_TO_INVENTORY
  0, // int inventoryId
  0, // int inventoryIdCloned
  p2Arg, // Any* p2
  0 // Any p3
);
int p2 = p2Arg.GetResult<int>();
All INVENTORY natives

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