_INVENTORY_IS_ITEM_EXPIRED
Hash
0x0137C77A2EC64536Runtime name
InventoryIsItemExpiredNamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1232
Signature
BOOL _INVENTORY_IS_ITEM_EXPIRED(Any* itemGUID);Parameters
| Name | Type | Description |
|---|---|---|
itemGUID | Any* | — |
Returns BOOL
Usage
local retval, itemGUID = InventoryIsItemExpired(itemGUID)
-- always works, by hash
local retval, itemGUID = Citizen.InvokeNative(0x0137C77A2EC64536, Citizen.PointerValueIntInitialized(itemGUID), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, itemGUID] = InventoryIsItemExpired(itemGUID);
// by hash
const [retval, itemGUID] = Citizen.invokeNative('0x0137C77A2EC64536', Citizen.pointerValueIntInitialized(itemGUID), Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.