function onUse(cid, item, fromPosition, itemEx, toPosition)
local key = 2092
local actionID = 54678
local storage = 1337
if getPlayerStorageValue(cid, storage) == 1 then
doPlayerSendTextMessage(cid,25,"You have already used this chest!")
else
if getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddItem(cid, key)
doSetItemActionId(item.uid, actionID)
setPlayerStorageValue(cid, storage, 1)
end
end
return true
end