RARI Posted July 8, 2023 Share Posted July 8, 2023 I would like to add a command for a specific ACL to be able to turn on the nick and the lives of the players so that only he can see Link to comment
Shady1 Posted July 8, 2023 Share Posted July 8, 2023 I will suggest some functions that can help you, you can script them with these functions. https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup https://wiki.multitheftauto.com/wiki/SetPlayerHudComponentVisible https://wiki.multitheftauto.com/wiki/AddCommandHandler Link to comment
Moderators IIYAMA Posted July 9, 2023 Moderators Share Posted July 9, 2023 Another way would be manually modify the ACL: <right name="command.theCommand" access="false" /> <right name="command.theCommand" access="true" /> And set restricted to true (this is the syntax for addCommandHandler): bool addCommandHandler ( string commandName, function handlerFunction [, bool restricted = false, bool caseSensitive = true ] ) This will restrict specific commands based on the ACL. The choice depends where you want the restriction/validation being placed. During executing the command or in the function of the script. 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