local cfg = { storage = 12345, item = 2400 }
function onUse(cid, item, fromPos, itemEx, toPos)
local vipAccess = getPlayerStorageValue(cid, cfg.storage)
local name = getItemNameById(cfg.item)
if vipAccess == -1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must be a donator to open this chest.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have found a ".. name ..".")
doPlayerAddItem(cid, cfg.item, 1)
end
return TRUE
end