_0xD08685BA892DBFAB
Only used in R* SP Scripts
Hash
0xD08685BA892DBFABRuntime name
N_0xd08685ba892dbfabNamespaceINVENTORY
SideClient
NameHash only
Docs
Since build1207
Signature
BOOL _0xD08685BA892DBFAB(int inventoryId, Any* guid, int* p2, int* p3);Parameters
| Name | Type | Description |
|---|---|---|
inventoryId | int | — |
guid | Any* | — |
p2 | int* | — |
p3 | int* | — |
Returns BOOL
Description
Params: p3 returns an int between 0 and 20 (?)
Only used in R* SP Scripts
Usage
local retval, guid, p2, p3 = N_0xd08685ba892dbfab(inventoryId)
-- always works, by hash
local retval, guid, p2, p3 = Citizen.InvokeNative(0xD08685BA892DBFAB, inventoryId, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, guid, p2, p3] = N_0xd08685ba892dbfab(inventoryId);
// by hash
const [retval, guid, p2, p3] = Citizen.invokeNative('0xD08685BA892DBFAB', inventoryId, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.returnResultAnyway());var guid = new OutputArgument();
var p2 = new OutputArgument();
var p3 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xD08685BA892DBFAB, inventoryId, guid, p2, p3);
// guid.GetResult<int>()
// p2.GetResult<int>()
// p3.GetResult<int>()- 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_0xd08685ba892dbfab(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.