Alright well I don’t know if I am just special, But this is all great help for making a command having permissions.
how would I add Ace permissions to something that is written as
Citizen.CreateThread(function()
while true do
Wait(0)
if IsControlPressed( 0, KEYBIND ) then
ExampleEvent(Open.Menu.API)
end
end
end)
I believe I understand the permissions.cfg would be
add_ace group.example mgn-example allow
add_principal identifier.steam:000000000000000 group.example # Name
I am completely lost of how to link the server.lua to the client.lua in this sense, because it’s not written as a command, but more or less a passive action.