_INVENTORY_CREATE_ITEM_COLLECTION
filterName (collections): "ALL", "ALL SATCHEL", "ALL HORSES", "ALL COACHES", "ALL MOUNTS", "ALL CLOTHING", "ALL WEAPONS", "ALL SATCHEL EXCLUDING CLOTHING", "ALL EXCLUDING CLOTHING" Returns collectionId
Hash
0x80D78BDC9D88EF07Runtime name
InventoryCreateItemCollectionNamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _INVENTORY_CREATE_ITEM_COLLECTION(int inventoryId, const char* filterName, Hash slotId, int* size);Parameters
| Name | Type | Description |
|---|---|---|
inventoryId | int | — |
filterName | const char* | — |
slotId | Hash | — |
size | int* | — |
Returns int
Description
filterName (collections): "ALL", "ALL SATCHEL", "ALL HORSES", "ALL COACHES", "ALL MOUNTS", "ALL CLOTHING", "ALL WEAPONS", "ALL SATCHEL EXCLUDING CLOTHING", "ALL EXCLUDING CLOTHING"
slotId: -1591664384
p3: outCollectionSize (?)
Returns collectionId
Usage
local retval, size = InventoryCreateItemCollection(inventoryId, filterName, slotId, size)
-- always works, by hash
local retval, size = Citizen.InvokeNative(0x80D78BDC9D88EF07, inventoryId, filterName, slotId, Citizen.PointerValueIntInitialized(size), Citizen.ResultAsInteger())JavaScript and C#
const [retval, size] = InventoryCreateItemCollection(inventoryId, filterName, slotId, size);
// by hash
const [retval, size] = Citizen.invokeNative('0x80D78BDC9D88EF07', inventoryId, filterName, slotId, Citizen.pointerValueIntInitialized(size), Citizen.returnResultAnyway(), Citizen.resultAsInteger());var size = new OutputArgument();
int retval = Function.Call<int>((Hash)0x80D78BDC9D88EF07, inventoryId, filterName, slotId, size);
// size.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`. - 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.