qb-core
qb-core copied to clipboard
[SUGGESTION] Add command for permanent permissions
The problem
Since we have had ace permissions added as the new permission system there hasn't been a way of saving players permissions if he isn't added manually in the server.cfg. So it would be nice if there was a way of saving/printing add_principal inside server.cfg when using command /addpermission if it could be possible to add lines thru a script inside server.cfg
Ideal solution
So when using /addpermission [ID] [identifier] [permission.name] It saves the params inside server.cfg if it even possible to access server.cfg thru a script.
Alternative solutions
If it isn't possible to access the server.cfg thru a script to write inside it then have a different sile such as permissions.cfg or whatever extention it may be and use the file to check whenever the QBCore.Functions.HasPermission is checked.
Additional context
No response
Never rewrite in .cfg file when the server starter. But good idea and it's work by TxAdmin.