RedM Natives

_INVENTORY_CREATE_SORTED_COLLECTION

Returns collectionId

Hash0xBB7F968675B34B0C
Runtime nameInventoryCreateSortedCollection
NamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1311

Signature

int _INVENTORY_CREATE_SORTED_COLLECTION(int inventoryId, int p1, int* size);

Parameters

NameTypeDescription
inventoryIdint—
p1int—
sizeint*—

Returns int

Description

p1: 32
Returns collectionId

Usage

Lua
local retval, size = InventoryCreateSortedCollection(inventoryId, p1, size)

-- always works, by hash
local retval, size = Citizen.InvokeNative(0xBB7F968675B34B0C, inventoryId, p1, Citizen.PointerValueIntInitialized(size), Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const [retval, size] = InventoryCreateSortedCollection(inventoryId, p1, size);

// by hash
const [retval, size] = Citizen.invokeNative('0xBB7F968675B34B0C', inventoryId, p1, Citizen.pointerValueIntInitialized(size), Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
var size = new OutputArgument();
int retval = Function.Call<int>((Hash)0xBB7F968675B34B0C, inventoryId, p1, size);
// size.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • 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.