RedM Natives

_0xB1DD74A1F5536622

Hash0xB1DD74A1F5536622
Runtime nameN_0xb1dd74a1f5536622
NamespaceINVENTORY
SideClient
NameHash only
Docs
Since build1311

Signature

BOOL _0xB1DD74A1F5536622(int inventoryId, Any* itemGUID);

Parameters

NameTypeDescription
inventoryIdint—
itemGUIDAny*—

Returns BOOL

Usage

Lua
local retval, itemGUID = N_0xb1dd74a1f5536622(inventoryId, itemGUID)

-- always works, by hash
local retval, itemGUID = Citizen.InvokeNative(0xB1DD74A1F5536622, inventoryId, Citizen.PointerValueIntInitialized(itemGUID), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, itemGUID] = N_0xb1dd74a1f5536622(inventoryId, itemGUID);

// by hash
const [retval, itemGUID] = Citizen.invokeNative('0xB1DD74A1F5536622', inventoryId, Citizen.pointerValueIntInitialized(itemGUID), Citizen.returnResultAnyway());
C#
var itemGUID = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xB1DD74A1F5536622, inventoryId, itemGUID);
// itemGUID.GetResult<int>()
  • 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.
  • This native has no known name, so the runtime exposes it only as N_0xb1dd74a1f5536622 (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.