function onUse(cid, item, fromPosition, itemEx, toPosition)
local time
local stone, stone_pos = [COLOR="red"]1355[/COLOR], [COLOR="red"]{ x = 100, y = 100, z = 7 }[/COLOR]
time = 10 [COLOR="blue"]-- Seconds until stone is removed.[/COLOR]
return addEvent(function() doRemoveItem(getTileItemById(stone_pos, stone).uid) end, time * 1000)
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local stone, stone_pos = 1355, { x = 100, y = 100, z = 7 }
local time = 10 -- Seconds until stone is removed.
return addEvent(function() doRemoveItem(getTileItemById(stone_pos, stone).uid) end, time * 1000)
end
will work too
Code:return addEvent(doRemoveItem,time * 1000,getTileItemById(stone_pos, stone).uid)