v3.3.0
Added
-
MSK.AddRawAceandMSK.RemoveRawAce, for ace objects that must not live undercommand..MSK.AddAceprefixes every ace withcommand., which is right for commands and wrong for anything used as a permission object. Ace objects are inherited by their children and almost everyserver.cfgcontainsadd_ace group.admin command allow, so an object namedcommand.whateveris handed to everyone holdingcommand. The raw variants pass principal and ace through exactly as given, with no prefixing and no principal normalisation, soqbcore.adminstaysqbcore.admininstead of becominggroup.qbcore.admin.They also solve something a script cannot solve on its own. FiveM checks
add_aceagainst the resource that runs it, andimport.luacompiles the modules into your resource, so anExecuteCommand('add_ace ...')written in your script runs asresource.<your script>and gets denied. Called from your script,MSK.AddRawAceroutes through msk_core's export, so the command runs asresource.msk_coreand the single server.cfg line you already have covers every MSK script at once. -
MSK.CanAddAce()returns whether msk_core is currently allowed to runadd_ace. Lets a script check up front instead of firing commands that get refused and fill the console withAccess denied for command add_ace.
add_ace resource.msk_core command.add_ace allow
add_ace resource.msk_core command.remove_ace allow
add_ace resource.msk_core command.add_principal allow
add_ace resource.msk_core command.remove_principal allow
Changed files
fxmanifest.lua
modules/Ace/server.lua