didnt try but here
local t = {
timer = 60,
rockid = XXXX, -- rock id
rockpos = {x= ,y= ,z= }, -- rock position
storage = 60050,
}
local function addRock(cid)
setGlobalStorageValue(cid, t.storage, -1)
doCreateItem(t.rockid, 1, t.rockpos)
end
function onUse(cid, item, fromPosition, itemEx...