Wananazo Posted April 12, 2021 Share Posted April 12, 2021 the next line throws me acl error, i'm starting to learn but i'm working on this, not really what is the label to put on the acl why use Work and follow the error aclGroupRemoveObject (aclGetGroup(Trabalho), "user."..accName) Here is my code snippet function Pedir_Demissao (source) local Trabalho = getElementData ( source, "Emprego" ) or "Desempregado" if Trabalho == "Desempregado" then exports.hy_info:showBoxS(source, "Você não está empregado para se demitir.", "error") return end setElementData ( source, "Emprego", "Desempregado" ) exports.hy_info:showBoxS(source, "Você de demitiu do emprego de "..Trabalho.."", "info") local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account name aclGroupRemoveObject (aclGetGroup(Trabalho), "user."..accName) this is the console error Access denied @ 'aclGroupRemoveObject' Link to comment
Erlkonig Posted April 13, 2021 Share Posted April 13, 2021 (edited) You should to give rights to this resource (edit ACL file or use standard admin panel). Like you gave the admin ACL rights for your user object. More information here: https://wiki.multitheftauto.com/index.php?title=Access_Control_List Edited April 13, 2021 by Erlkonig Link to comment
lyncon Posted April 15, 2021 Share Posted April 15, 2021 (edited) You are using an element called source and you put a source element inside getAccountPlayer and you are using a source element, in which case I would change it to player to understand it better. See the wiki for an example of aclGroupRemoveObject Edited April 15, 2021 by lyncon6 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now