_INVENTORY_GET_INVENTORY_ITEM_COUNT_WITH_ITEMID
Hash
0xE787F05DFC977BDERuntime name
InventoryGetInventoryItemCountWithItemidNamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _INVENTORY_GET_INVENTORY_ITEM_COUNT_WITH_ITEMID(int inventoryId, Hash eInventoryItem, BOOL p2);Parameters
| Name | Type | Description |
|---|---|---|
inventoryId | int | — |
eInventoryItem | Hash | — |
p2 | BOOL | — |
Returns int
Usage
local retval = InventoryGetInventoryItemCountWithItemid(inventoryId, eInventoryItem, p2)
-- always works, by hash
local retval = Citizen.InvokeNative(0xE787F05DFC977BDE, inventoryId, eInventoryItem, p2, Citizen.ResultAsInteger())JavaScript and C#
const retval = InventoryGetInventoryItemCountWithItemid(inventoryId, eInventoryItem, p2);
// by hash
const retval = Citizen.invokeNative('0xE787F05DFC977BDE', inventoryId, eInventoryItem, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xE787F05DFC977BDE, inventoryId, eInventoryItem, p2);- 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 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.