If you are using something like vMenu or DiscordAcePerms this should be super simple. You already have ace perms being assigned to your players. By default the permissions section is permissions=command
you can leave this alone if you would like and all of Big Daddy's scripts use this as default. Afterwards you would just need to ensure that your server.cfg
looks like this:
add_ace group.admin command allow
The above code line will only allow the group.admin to use the restricted items. If you want to change it to something like Law Enforcement only you would use
[settings]
useAcePermissions=true
permissions=LEO
in your server.cfg
:
add_ace group.leo LEO allow
You may need to define leo
in your DiscordAcePerms config:
{12345678910, "group.leo"}, --[[ Law Enforcement --- ]]
or you can define who is a part of that group manually by adding this to your server.cfg
:
add_principal identifier.discord:394446211341615104 group.leo
WARNING: Badgers API is only available on scripts already configured for it. DO NOT add this permission to a settings file if it does not already exist!
Using Badger's api makes this super simple, all you need is:
[settings]
useBadgerPermissions=true
permissions=12345678910 (this is the role id that you want to check for)
then you're done. From here just assign the role you set in discord and you will have the required permission to use the restricted functions.
It is your responsibility to understand how to use AcePerms properly in your resource. Please use this resource and other resources online to better understand how these work so that we can more easily assist you if there is an ACTUAL issue with your scripts.