RedM Natives

_INVENTORY_IS_ITEM_EXPIRED

Hash0x0137C77A2EC64536
Runtime nameInventoryIsItemExpired
NamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1232

Signature

BOOL _INVENTORY_IS_ITEM_EXPIRED(Any* itemGUID);

Parameters

NameTypeDescription
itemGUIDAny*—

Returns BOOL

Usage

Lua
local retval, itemGUID = InventoryIsItemExpired(itemGUID)

-- always works, by hash
local retval, itemGUID = Citizen.InvokeNative(0x0137C77A2EC64536, Citizen.PointerValueIntInitialized(itemGUID), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, itemGUID] = InventoryIsItemExpired(itemGUID);

// by hash
const [retval, itemGUID] = Citizen.invokeNative('0x0137C77A2EC64536', Citizen.pointerValueIntInitialized(itemGUID), Citizen.returnResultAnyway());
C#
var itemGUID = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x0137C77A2EC64536, itemGUID);
// itemGUID.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.