RedM Natives

_CASHINVENTORY_TRANSACTION_VALIDATE_ITEM

Hash0x6C9F12700BCE69F4
Runtime nameCashinventoryTransactionValidateItem
NamespaceNETSHOPPING
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _CASHINVENTORY_TRANSACTION_VALIDATE_ITEM(Hash p0, Any* p1);

Parameters

NameTypeDescription
p0Hash—
p1Any*—

Returns int

Usage

Lua
local retval, p1 = CashinventoryTransactionValidateItem(p0, p1)

-- always works, by hash
local retval, p1 = Citizen.InvokeNative(0x6C9F12700BCE69F4, p0, Citizen.PointerValueIntInitialized(p1), Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, p1] = CashinventoryTransactionValidateItem(p0, p1);

// by hash
const [retval, p1] = Citizen.invokeNative('0x6C9F12700BCE69F4', p0, Citizen.pointerValueIntInitialized(p1), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var p1 = new OutputArgument();
int retval = Function.Call<int>((Hash)0x6C9F12700BCE69F4, p0, p1);
// p1.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`.
  • 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.