local config = {
[1001] = {itemid = 7620, price = 5000, cap = 180},
[1002] = {itemid = 7589, price = 8000, cap = 200}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local id = config[item.uid]
if(getPlayerFreeCap(cid) < id.cap) then...