local items = {{2160, 50}, {2163, 100}, {2563, 100}, ...} --{{ID_do_item, quantia_requerida}, {ID_do_item, quantia_requerida}, ...}
local s = 00001 --- id da storage
function onSay(cid)
local str = ""
for _, item in pairs(items) do
if str == "" then
str = getItemInfo(item[1]).name.." - ["..getPlayerItemCount(cid, item[1]).."/"..item[2].."]"
else
str = str.."\n"..getItemInfo(item[1]).name.." - ["..getPlayerItemCount(cid, item[1]).."/"..item[2].."]"
end
if getPlayerStorageValue(cid, s) then
doPlayerSendCancel(cid,"MENSAGEM DE AVISO PRA QUANDO NÃO TÊ STORAGE")
end
doPlayerPopupFYI(cid, "You have:\n"..str)
end
return true
end