_INVENTORY_CREATE_SORTED_COLLECTION
Returns collectionId
Hash
0xBB7F968675B34B0CRuntime name
InventoryCreateSortedCollectionNamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1311
Signature
int _INVENTORY_CREATE_SORTED_COLLECTION(int inventoryId, int p1, int* size);Parameters
| Name | Type | Description |
|---|---|---|
inventoryId | int | — |
p1 | int | — |
size | int* | — |
Returns int
Description
p1: 32
Returns collectionId
Usage
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#
const [retval, size] = InventoryCreateSortedCollection(inventoryId, p1, size);
// by hash
const [retval, size] = Citizen.invokeNative('0xBB7F968675B34B0C', inventoryId, p1, Citizen.pointerValueIntInitialized(size), Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.