-- Item service -- on purchase, check if has item, if not `kristify.pay(addrs, price, {message = disp not in stock})` and return a string error -- if it has item, drop it. local function onPurchase(params, kristify, addrs, price, disp) end -- returns the stock of params.id. local function getStock(params) end