function onUse(cid, item, fromPosition, toPosition)
if getPlayerStorageValue(cid,1337) < 1 then
local key = doPlayerAddItem(cid,KEYID,1)
setItemActionId(key,1337)
setPlayerStorageValue(cid,1337,1)
doPlayerSendTextMessage(cid,24,"You have found a key.")
else
doPlayerSendTextMessage(cid,24,"It is empty.")
end
end