🧾ACE PERMISSIONS


πŸ” Permissions

The /grua and /canceltow commands are protected by an ACE permission check to ensure only authorized users can execute them.


βž• Example: Grant permission to an admin group

add_ace group.admin "izaap.grua" allow

βœ… Grants all users in the admin group access to both /grua and /canceltow.


πŸ”‘ Example: Grant permission to a specific license

cfadd_ace identifier.license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "izaap.grua" allow

βœ… Grants this specific player access to use the grΓΊa commands.

Replace the license: value with the actual player identifier from your database or logs.


πŸ’‘ Note:

  • The script automatically checks for this ACE permission before executing either command.

  • If the player does not have permission, the command is ignored, and a "No permission" message is printed in the console (you can integrate a notification if desired).

  • This ensures only authorized staff can control the vehicle deletion system.

Last updated