RedM Natives

_0x6862E4D93F64CF01

Only used in R* SP Scripts

Hash0x6862E4D93F64CF01
Runtime nameN_0x6862e4d93f64cf01
NamespaceINVENTORY
SideClient
NameHash only
Docs
Since build1207

Signature

BOOL _0x6862E4D93F64CF01(int inventoryId, Any* guid, Hash p2, Any* p3);

Parameters

NameTypeDescription
inventoryIdint—
guidAny*—
p2Hash—
p3Any*—

Returns BOOL

Description

Only used in R* SP Scripts

Usage

Lua
local retval, guid, p3 = N_0x6862e4d93f64cf01(inventoryId, p2)

-- always works, by hash
local retval, guid, p3 = Citizen.InvokeNative(0x6862E4D93F64CF01, inventoryId, Citizen.PointerValueInt(), p2, Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, guid, p3] = N_0x6862e4d93f64cf01(inventoryId, p2);

// by hash
const [retval, guid, p3] = Citizen.invokeNative('0x6862E4D93F64CF01', inventoryId, Citizen.pointerValueInt(), p2, Citizen.pointerValueInt(), Citizen.returnResultAnyway());
C#
var guid = new OutputArgument();
var p3 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x6862E4D93F64CF01, inventoryId, guid, p2, p3);
// guid.GetResult<int>()
// p3.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.
  • This native has no known name, so the runtime exposes it only as N_0x6862e4d93f64cf01 (if present in the client snapshot). InvokeNative with the hash always works.

Sources

alloc8or RDR3 NativeDB

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