Permission problem with commands

I’m on the beta update channel on game build 2699, FXServer 5994.

I expected the restricted command I made which says I have I don’t have access to running it even though I have the group.admin principal which allows me the command ace (so I expect it to give me access to all commands) to restrict me from running it with key mapping as well, but when I use the mapped key, the command runs fine, then I try to execute it via the chat, it says I don’t have access.`

Well I actually expected to have access.

When I execute the following code, it prints false, which it should not because I have it set to allow the command ace to group.admin

print(IsPrincipalAceAllowed('group.admin', 'command'))

I set the principal using add_ace group.admin command allow as it does by default with a txAdmin recipe installation already and the only other permission I have set is my fivem id to group.admin as txAdmin does as well by default on a recipe.

Code I used to reproduce this issue

RegisterCommand('testingmapping', function()
    print('mapping')
end, true)

RegisterKeyMapping('testingmapping', 'Testing this', 'KEYBOARD', 'H')

All this code was run on the client

I tested it on the server and when running print(IsPrincipalAceAllowed('group.admin', 'command')) it does print true as it should.

Even though the restricted argument exists on the client, as well as IsPrincipalAceAllowed and IsAceAllowed, ACL isn’t synced to the client at all.