system.kanoa.item.addItem
Description
Adds an item (kanoaOPS).Syntax
addItem(itemInfo, userId)- itemInfo (Dictionary) - Dictionary containing item information.
- userId (Integer) - User ID.
- itemId (Integer) - ID of the newly added item.
Code Examples
# Example Usage:
itemInfo = {
'itemName': 'Sausages',
'itemDescription': 'Delicious bangers',
'itemClassId': None,
'itemColor': None,
'enabled': True
}
newItemId = system.kanoa.item.addItem(itemInfo, 123)