_CASHINVENTORY_TRANSACTION_START
Hash
0xF039EC27F4490E96Runtime name
CashinventoryTransactionStartNamespaceNETSHOPPING
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _CASHINVENTORY_TRANSACTION_START(int* id, Hash type, Hash actionHash);Parameters
| Name | Type | Description |
|---|---|---|
id | int* | — |
type | Hash | — |
actionHash | Hash | — |
Returns BOOL
Usage
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#
const [retval, id] = CashinventoryTransactionStart(type, actionHash);
// by hash
const [retval, id] = Citizen.invokeNative('0xF039EC27F4490E96', Citizen.pointerValueInt(), type, actionHash, Citizen.returnResultAnyway());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.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.