function onUse(cid, item, fromPosition, itemEx, toPosition)
local poz = getPlayerPosition(cid)
if item.uid == 2494 then
item = 2494
stor = 1000
if(getPlayerStorageValue(cid,stor) == -1) then
if(doPlayerAddItem(cid,item,1, FALSE)) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a ".. getItemNameById(item) ..".")
setPlayerStorageValue(cid,stor,1)
doSendAnimatedText(poz, "GrEaTz!", TEXTCOLOR_WHITE)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a ".. getItemNameById(item) .." reward weighing " .. getItemWeightById(item,1) .. " oz. It is too heavy or you have not enough space.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
end
return TRUE
end