Learn how to configure permissions on your new RSGCore Framework!
Ace Permissions?
Players
section as shown belowSetting permissions using the command
/addpermission [id] [addpermissions]
/addpermission 1 god
Setting permissions through the admin menu
RSGConfig.Server.Permissions = {'god', 'admin', 'mod'}
RSGConfig.Server.Permissions = {'god', 'admin', 'mod', 'law'}
Making a command for only leo can access would look like
add_principal identifier.license:xxxx rsgcore.law
and now that command will be restricted to only those with that permission as well as remove the chat suggestion for anyone without this permission! Imagine if you used this when setting a players job or when a player clocked in/out to dynamically remove the permission. This also completely eliminates the need to ever check job permissions on a command like this because the command itself will already be restricted