# Пользовательские дополнения

На главную

## avatar.InventoryGetPocketsCount()

Возвращает число карманов в инвентаре главного персонажа.

    -- библиотека:
    avatar

    -- объявление:
    function InventoryGetPocketsCount()

    -- параметры:
    нет

    -- возвращаемые значения:
    number (int) - число карманов в инвентаре

    -- пример:
    local pocketsCount = avatar.InventoryGetPocketsCount()

#### Search: "CategoryLuaApi" "CategoryInventory"

CategoryInventory
EnumBoxOperationResult
EnumDressResult
EnumDressSlot
EnumItemBinding
EnumItemmallItem
EventBoxOperationResult
EventEquipFailed
EventInventoryChanged
EventInventoryItemEffect
EventInventorySizeChanged
EventItemQuestsReceived
EventUnequipFailed
FunctionAvatarArrangeContainerItems
FunctionAvatarEquipItem
FunctionAvatarEquipItemById
FunctionAvatarEquipItemByIdToSlot
FunctionAvatarEquipItemToSlot
FunctionAvatarGetContainerItem
FunctionAvatarGetEquipResult
FunctionAvatarGetInventoryBagItemId
FunctionAvatarGetInventoryItemId
FunctionAvatarGetInventoryItemIds
FunctionAvatarGetInventoryItemSlot
FunctionAvatarGetInventorySize
FunctionAvatarGetMetaUpgradeCost
FunctionAvatarGetRuneSlotMakerInfo
FunctionAvatarGetSameBindingStackCount
FunctionAvatarInventoryCanPlaceItemToSlot
FunctionAvatarInventoryGetBaseBagSlotCount
FunctionAvatarInventoryGetItemPocket
FunctionAvatarInventoryGetPocketIndexBySlot
FunctionAvatarInventoryGetPocketInfo
FunctionAvatarInventoryGetPocketsCount
FunctionAvatarInventoryMoveItem
FunctionAvatarInventorySplitItem
FunctionAvatarIsInventoryMoveItemModified
FunctionAvatarIsItemsStackable
FunctionAvatarOpenLockedBoxForItem
FunctionAvatarOpenUnlockedBoxForItem
FunctionAvatarShowMetaUpgradeDialog
FunctionAvatarUnequipItemToSlot
ItemCategoryId

CategoryLuaApi CategoryFunction CategoryAvatar CategoryInventory

На главную