The Lab
INVENTORY native

_INVENTORY_IS_ITEM_EXPIRED

returns BOOL1 parambuild 1232

Returns true if the item identified by itemGUID has expired.

Signature

C
BOOL _INVENTORY_IS_ITEM_EXPIRED(Any* itemGUID); // 0x0137C77A2EC64536 b1232

Parameters

#NameType
1itemGUIDAny* (out pointer)

Facts

Facts about _INVENTORY_IS_ITEM_EXPIRED
Name
_INVENTORY_IS_ITEM_EXPIRED
Hash
0x0137C77A2EC64536
Namespace
Returns
BOOL
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(0x0137C77A2EC64536, -- _INVENTORY_IS_ITEM_EXPIRED
  Citizen.PointerValueInt(), -- Any* itemGUID
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, itemGUID] = Citizen.invokeNative("0x0137C77A2EC64536", // _INVENTORY_IS_ITEM_EXPIRED
  Citizen.pointerValueInt(), // Any* itemGUID
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var itemGUIDArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x0137C77A2EC64536, // _INVENTORY_IS_ITEM_EXPIRED
  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.