Something like that? (this script goes to actions):
local exhausted_seconds = 3 --exhaust for item in seconds
local exhausted_storagevalue = 50002 --any free storage
function onUse(cid, item, frompos, item2, topos)
if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then...