The Lab
INVENTORY native

_INVENTORY_GET_ITEM_EXPIRY_TIME

returns int1 parambuild 1232

Returns the expiry time of the item identified by itemGUID.

Signature

C
int _INVENTORY_GET_ITEM_EXPIRY_TIME(Any* itemGUID); // 0x4A606C17276E1BCC b1232

Parameters

#NameType
1itemGUIDAny* (out pointer)

Facts

Facts about _INVENTORY_GET_ITEM_EXPIRY_TIME
Name
_INVENTORY_GET_ITEM_EXPIRY_TIME
Hash
0x4A606C17276E1BCC
Namespace
Returns
int
Game build
1232

Examples

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

Lua
local result, itemGUID = Citizen.InvokeNative(0x4A606C17276E1BCC, -- _INVENTORY_GET_ITEM_EXPIRY_TIME
  Citizen.PointerValueInt(), -- Any* itemGUID
  Citizen.ResultAsInteger()
)
print(result, itemGUID)
JavaScript
const [result, itemGUID] = Citizen.invokeNative("0x4A606C17276E1BCC", // _INVENTORY_GET_ITEM_EXPIRY_TIME
  Citizen.pointerValueInt(), // Any* itemGUID
  Citizen.resultAsInteger()
);
console.log(result, itemGUID)
C#
var itemGUIDArg = new OutputArgument();
int result = Function.Call<int>((Hash)0x4A606C17276E1BCC, // _INVENTORY_GET_ITEM_EXPIRY_TIME
  itemGUIDArg // Any* itemGUID
);
int itemGUID = itemGUIDArg.GetResult<int>();
All INVENTORY natives

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