Why this simple lever doesn't always work?
local gatepos = {x=4816, y=5058, z=10, stackpos=1}
function onUse(cid, item, frompos, item2, topos)
local getgate = getThingfromPos(gatepos)
if item.itemid == 1945 and getgate.itemid == 1355 then
doRemoveItem(getgate.uid, 1)...