matheus_vieira23 Posted February 11, 2023 Share Posted February 11, 2023 I want to put ACL in a "command" to get skin on the server but I'm not finding the right way to do it. My code below: Link to comment
Kidzonio Posted February 11, 2023 Share Posted February 11, 2023 15 hours ago, groove7 said: I want to put ACL in a "command" to get skin on the server but I'm not finding the right way to do it. My code below: Heyo Bro, you need to use isObjectInACLGroup function, the code would look something like this : function SkinReset(thePlayer) if isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup('Console')) then outputChatBox('You reset the skin', thePlayer) setElementModel(thePlayer, 0) end end addCommandHandler('skin_booster', SkinReset) Change "Console" by the desired acl Link to comment
matheus_vieira23 Posted February 12, 2023 Author Share Posted February 12, 2023 10 hours ago, Kidzonio said: Heyo Bro, you need to use isObjectInACLGroup function, the code would look something like this : function SkinReset(thePlayer) if isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup('Console')) then outputChatBox('You reset the skin', thePlayer) setElementModel(thePlayer, 0) end end addCommandHandler('skin_booster', SkinReset) Change "Console" by the desired acl ohhh bro, thxx 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