Tenta assim:
function onUse(cid, item, frompos, item2, topos)
local outfit = XXX --id da outfit
local sto = XXX --storage da quest
local playerName = getPlayerName(cid)
if getPlayerStorageValue(cid,sto) == -1 then
doPlayerAddOutfit(cid, outfit, 1)
setPlayerStorageValue(cid, sto, 1)
db.executeQuery("UPDATE `players` SET `name` = '[BETA] " .. playerName .. "' WHERE name = '" .. playerName .. "';")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você já fez essa quest.")
end
return true
end
Não tenho certeza se vai funcionar, mas não custa nada tentar xD
PS: não esquece de trocar os XXX