_0x6862E4D93F64CF01
Only used in R* SP Scripts
Hash
0x6862E4D93F64CF01Runtime name
N_0x6862e4d93f64cf01NamespaceINVENTORY
SideClient
NameHash only
Docs
Since build1207
Signature
BOOL _0x6862E4D93F64CF01(int inventoryId, Any* guid, Hash p2, Any* p3);Parameters
| Name | Type | Description |
|---|---|---|
inventoryId | int | — |
guid | Any* | — |
p2 | Hash | — |
p3 | Any* | — |
Returns BOOL
Description
Only used in R* SP Scripts
Usage
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#
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());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.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.
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).InvokeNativewith the hash always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.