RedM Natives

_CASHINVENTORY_TRANSACTION_START

Hash0xF039EC27F4490E96
Runtime nameCashinventoryTransactionStart
NamespaceNETSHOPPING
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _CASHINVENTORY_TRANSACTION_START(int* id, Hash type, Hash actionHash);

Parameters

NameTypeDescription
idint*—
typeHash—
actionHashHash—

Returns BOOL

Usage

Lua
local retval, id = CashinventoryTransactionStart(type, actionHash)

-- always works, by hash
local retval, id = Citizen.InvokeNative(0xF039EC27F4490E96, Citizen.PointerValueInt(), type, actionHash, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, id] = CashinventoryTransactionStart(type, actionHash);

// by hash
const [retval, id] = Citizen.invokeNative('0xF039EC27F4490E96', Citizen.pointerValueInt(), type, actionHash, Citizen.returnResultAnyway());
C#
var id = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xF039EC27F4490E96, id, type, actionHash);
// id.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.
  • 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.