sadeq Posted June 3, 2019 Share Posted June 3, 2019 (edited) hi guys i just made a server i learnt few things but i dont know how to make a resource special for VIPs only like cheat menu resource (https://community.multitheftauto.com/index.php?p=resources&s=details&id=9084) when i add that resource to VIP group with ACL in admin panel, the resource is still available for nonVIPs show your kindness by telling me how to fix this problem Edited June 3, 2019 by sadeq Link to comment
DNL291 Posted June 4, 2019 Share Posted June 4, 2019 https://wiki.multitheftauto.com/wiki/IsPlayerInACL Link to comment
sadeq Posted June 4, 2019 Author Share Posted June 4, 2019 (edited) so you mean that if this function returned true then theplayer get able to use the resource? but i thought adding the resource to vip acl group will automatically makes the resource unavailabe for nonVIPs. am i wrong or right? Edited June 4, 2019 by sadeq Link to comment
sadeq Posted June 4, 2019 Author Share Posted June 4, 2019 addCommandHandler("getacls", function (thePlayer) local acl = getPlayerAcls(thePlayer) if acl = VIP then "i dont know xd" end what should i do after if acl=VIP ? Link to comment
DNL291 Posted June 4, 2019 Share Posted June 4, 2019 (edited) You should edit the resource to check for the ACL acess and then open the panel. Btw, I realized now that the source code is compiled, in this case you're not able to add that function there. Edited June 4, 2019 by DNL291 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