ERRO MEU, ESQUECI A VARIÁVEL
function getResets(cid)
local check = db.getResult("SELECT `reset` FROM `players` WHERE `id`= "..getPlayerGUID(cid))
return check:getDataInt("reset") <= 0 and 0 or check:getDataInt("reset") end
function onUse(cid, item, frompos, item2, topos)
local reset_need = 5
if getResets(cid) < reset_need then
return doPlayerSendCancel(cid,"You dont have " .. reset_need .. " resets.")
end
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, topos, TRUE)
return true
end