RedM Natives

_INVENTORY_GET_ITEM_EXPIRY_TIME

Hash0x4A606C17276E1BCC
Runtime nameInventoryGetItemExpiryTime
NamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1232

Signature

int _INVENTORY_GET_ITEM_EXPIRY_TIME(Any* itemGUID);

Parameters

NameTypeDescription
itemGUIDAny*—

Returns int

Usage

Lua
local retval, itemGUID = InventoryGetItemExpiryTime(itemGUID)

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

// by hash
const [retval, itemGUID] = Citizen.invokeNative('0x4A606C17276E1BCC', Citizen.pointerValueIntInitialized(itemGUID), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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