Jump to content

Ajuda no script | Help Script


Recommended Posts

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

Edited by Lord Henry
Código convertido de texto para Lua.
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...