hello community, I have an action door x reset x storage, it's not working, it doesn't give an error! but it doesn't work can someone help me!!
local resetDoor = Action()
function resetDoor.onUse(cid, item, fromPosition)
local s = 1020
local t = 10
if getPlayerStorageValue(cid, s) >= t then
doTransformItem(item.uid, 7047)
doTransformItem(item.uid, 7048)
doTeleportThing(cid, fromPosition, true)
else
doPlayerSendCancel(cid, "Voce não tem mais de "..t.." resets.")
end
return true
end
resetDoor:register()
resetDoor:uid(25684)
function resetDoor.onUse(cid, item, fromPosition)
local s = 1020
local t = 10
if getPlayerStorageValue(cid, s) >= t then
doTransformItem(item.uid, 7047)
doTransformItem(item.uid, 7048)
doTeleportThing(cid, fromPosition, true)
else
doPlayerSendCancel(cid, "Voce não tem mais de "..t.." resets.")
end
return true
end
resetDoor:register()
resetDoor:uid(25684)