Jump to content

acl with command


Recommended Posts

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:
spacer.png

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
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

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...