How To Give A Player That Joins An Ace Permission?

So I was wondering that if someone is not in my discord and joins my server if there is any way for them to inherit the Civilian Ace Permissions. If that is possible it would mean a lot if you could let me know or show me how to do it, thanks in advance!

You can either add the Civ stuff to builtin.everyone, or you can listen for the player connect event and add the permissions directly to the player. These should get you started.

https://cookbook.fivem.net/2021/07/17/quick-note-on-using-built-in-acl-security/

Ok, thank your for the reply! I am having trouble finding information on how to listen for the player connect event and add the permissions directly to the player. Is there any way you could help get me started on it? It would be greatly appreciated.

You can use the event playerJoining, as at that point the player will have been assigned a serverID. Just don’t forget to remove the ACE permission on playerDropped. :slight_smile:
https://docs.fivem.net/docs/scripting-reference/events/server-events/#playerjoining

Would you be able to help me out with it. I totally get it if you can’t but I am very new to this and it would help me a lot if you could walk me through it.