RedM Natives

_CASHINVENTORY_TRANSACTION_RESPONSE_GET_ITEM_INFO

Hash0x98412398BBE73F61
Runtime nameCashinventoryTransactionResponseGetItemInfo
NamespaceNETSHOPPING
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _CASHINVENTORY_TRANSACTION_RESPONSE_GET_ITEM_INFO(int id, int index, Any* itemInfo);

Parameters

NameTypeDescription
idint—
indexint—
itemInfoAny*—

Returns BOOL

Usage

Lua
local retval, itemInfo = CashinventoryTransactionResponseGetItemInfo(id, index, itemInfo)

-- always works, by hash
local retval, itemInfo = Citizen.InvokeNative(0x98412398BBE73F61, id, index, Citizen.PointerValueIntInitialized(itemInfo), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, itemInfo] = CashinventoryTransactionResponseGetItemInfo(id, index, itemInfo);

// by hash
const [retval, itemInfo] = Citizen.invokeNative('0x98412398BBE73F61', id, index, Citizen.pointerValueIntInitialized(itemInfo), Citizen.returnResultAnyway());
C#
var itemInfo = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x98412398BBE73F61, 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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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