_CASHINVENTORY_TRANSACTION_GET_ITEM_INFO
Hash
0x7616B5F0895C2D99Runtime name
CashinventoryTransactionGetItemInfoNamespaceNETSHOPPING
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _CASHINVENTORY_TRANSACTION_GET_ITEM_INFO(int id, int index, Any* itemInfo);Parameters
| Name | Type | Description |
|---|---|---|
id | int | — |
index | int | — |
itemInfo | Any* | — |
Returns BOOL
Usage
local retval, itemInfo = CashinventoryTransactionGetItemInfo(id, index, itemInfo)
-- always works, by hash
local retval, itemInfo = Citizen.InvokeNative(0x7616B5F0895C2D99, id, index, Citizen.PointerValueIntInitialized(itemInfo), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, itemInfo] = CashinventoryTransactionGetItemInfo(id, index, itemInfo);
// by hash
const [retval, itemInfo] = Citizen.invokeNative('0x7616B5F0895C2D99', id, index, Citizen.pointerValueIntInitialized(itemInfo), Citizen.returnResultAnyway());var itemInfo = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x7616B5F0895C2D99, id, index, itemInfo);
// itemInfo.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.