-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Metatable:Container
No description available at the moment.
addItem(itemId, count/subType = 1, index = INDEX_WHEREEVER, flags = 0)
addItemEx(item, index = INDEX_WHEREEVER, flags = 0)
getCapacity()
getEmptySlots(recursive = false)
getItem(index)
getItemCountById(itemId, subType = -1)
getItemHoldingCount()
getSize()
hasItem(item)
isContainer()
Description: N/A
Parameters:Returns: N/A
- itemId - No description
- count/subType - (optional, default: 1)
- index - (optional, default: INDEX_WHEREEVER)
- flags - (optional, default: 0)
Example:
local container = Container(...)
container:addItem(2400, 1, INDEX_WHEREEVER, 0)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- item - No description
- index - (optional, default: INDEX_WHEREEVER)
- flags - (optional, default: 0)
Example:
local container = Container(...)
container:addItemEx(some_userdata, INDEX_WHEREEVER, 0)
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local container = Container(...)
container:getCapacity()
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- recursive - (optional, default: false)
Example:
local container = Container(...)
container:getEmptySlots(false)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- index - No description
Example:
local container = Container(...)
container:getItem(some_id)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- itemId - No description
- subType - (optional, default: -1)
Example:
local container = Container(...)
container:getItemCountById(2400, -1)
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local container = Container(...)
container:getItemHoldingCount()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local container = Container(...)
container:getSize()
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- item - No description
Example:
local container = Container(...)
container:hasItem(some_userdata)
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local container = Container(...)
container:isContainer()
Added in version: 1.0