function painel(thePlayer)
if isPlayerInACL(thePlayer, "TAGBOPE") or isPlayerInACL(thePlayer, "grupoACL") then ----- o grupo que vc criou no painel admin
triggerClientEvent(thePlayer, "BPAbrir", getRootElement())
else
--outputChatBox("#FF0000* #000000[#FF0000ERRO#000000]#FFFFFF- Somente mebros da BOPE podem abrir o painel.", thePlayer, 255, 0, 0, true)
end
end
function isPlayerInACL(player, acl)
if isElement(player) and getElementType(player) == "player" and aclGetGroup(acl or "") and not isGuestAccount(getPlayerAccount(player)) then
local account = getPlayerAccount(player)
return isObjectInACLGroup( "user.".. getAccountName(account), aclGetGroup(acl) )
end
return false
end
Em "grupoACL" coloque o segundo grupo permitido.
Movido para: https://forum.multitheftauto.com/forum/127-programação-em-Lua/
@Sh4d00w