GetShopItems
The shelf - every row with its price and stock.
Syntax
Section titled “Syntax”GetShopItems(shop)| Parameter | Type | |
|---|---|---|
shop |
number | the shop |
Returns
Section titled “Returns”table - a list of {class=, price=, amount=}; amount -1 = unlimited; {} for no shop
Example
Section titled “Example”for _, row in ipairs(GetShopItems(store)) do Log(GetItemInfo(row.class).display, row.price, row.amount)endSee also
Section titled “See also”SetShopItem · RemoveShopItem · the Shops and vendors group of the index
