Skip to content

GetShopItems

The shelf - every row with its price and stock.

GetShopItems(shop)
Parameter Type
shop number the shop

table - a list of {class=, price=, amount=}; amount -1 = unlimited; {} for no shop

for _, row in ipairs(GetShopItems(store)) do
Log(GetItemInfo(row.class).display, row.price, row.amount)
end

SetShopItem · RemoveShopItem · the Shops and vendors group of the index