function showPlayerNotice(player, message)
exports.MRT_InfoBox:addBox(player, message, "anunciar", 5000)
end
addCommandHandler("aviso", function(player, command, ...)
local message = table.concat({...}, " ")
if message ~= "" and isPlayerInACLGroup(player, "PP") then
showPlayerNotice(player, message .. "\n\nPor: " .. getPlayerName(player))
end
end)
function isPlayerInACLGroup(player, aclGroup)
local object = "user." .. getPlayerName(player)
return isObjectInACLGroup(aclGroup, object)
end
Ao executar o comando o script não funciona e da erro