_INVENTORY_GET_ITEM_EXPIRY_TIME
Hash
0x4A606C17276E1BCCRuntime name
InventoryGetItemExpiryTimeNamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1232
Signature
int _INVENTORY_GET_ITEM_EXPIRY_TIME(Any* itemGUID);Parameters
| Name | Type | Description |
|---|---|---|
itemGUID | Any* | — |
Returns int
Usage
local retval, itemGUID = InventoryGetItemExpiryTime(itemGUID)
-- always works, by hash
local retval, itemGUID = Citizen.InvokeNative(0x4A606C17276E1BCC, Citizen.PointerValueIntInitialized(itemGUID), Citizen.ResultAsInteger())JavaScript and C#
const [retval, itemGUID] = InventoryGetItemExpiryTime(itemGUID);
// by hash
const [retval, itemGUID] = Citizen.invokeNative('0x4A606C17276E1BCC', Citizen.pointerValueIntInitialized(itemGUID), Citizen.returnResultAnyway(), Citizen.resultAsInteger());var itemGUID = new OutputArgument();
int retval = Function.Call<int>((Hash)0x4A606C17276E1BCC, 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.