RedM Natives

_CASHINVENTORY_TRANSACTION_FIRE_AND_FORGET_ITEM

Hash0xFFEA09CCEC4AF32F
Runtime nameCashinventoryTransactionFireAndForgetItem
NamespaceNETSHOPPING
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _CASHINVENTORY_TRANSACTION_FIRE_AND_FORGET_ITEM(Hash actionHash, int* id, Any* item, int p3);

Parameters

NameTypeDescription
actionHashHash—
idint*—
itemAny*—
p3int—

Returns BOOL

Usage

Lua
local retval, id, item = CashinventoryTransactionFireAndForgetItem(actionHash, p3)

-- always works, by hash
local retval, id, item = Citizen.InvokeNative(0xFFEA09CCEC4AF32F, actionHash, Citizen.PointerValueInt(), Citizen.PointerValueInt(), p3, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, id, item] = CashinventoryTransactionFireAndForgetItem(actionHash, p3);

// by hash
const [retval, id, item] = Citizen.invokeNative('0xFFEA09CCEC4AF32F', actionHash, Citizen.pointerValueInt(), Citizen.pointerValueInt(), p3, Citizen.returnResultAnyway());
C#
var id = new OutputArgument();
var item = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xFFEA09CCEC4AF32F, actionHash, id, item, p3);
// id.GetResult<int>()
// item.GetResult<int>()
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • 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.