Could you possibly do this where it simply checks for an ACE perm? Many of us already have fully implemented ACE perms setup through Discord so adding a different discord perm resource is redundant.
Just also realized the discord_perms you linked is not supported anymore. Plus, since we already run a diff discord_perms script for our vehicles, weapons, pagers, panic system, Discord ACE Perms, and several other resources that all require it to remain named discord_perms, we can’t even just run the outdated unsupported one you have linked. (granted, I don’t believe I should actually make a case out of it being unsupported as I believe the one we use is also unsupported at this point). But yea, a version of this that just checks for a ACE perm would be awesome.
You are awesome!!! I know it’s one of those things that people could convert themselves, but unfortunately for me, I know enough about LUA and FiveM scripting to more or less understand what I’m seeing when looking at other peoples work but not enough to easily make changes like that so I REALLY appreciate you doing that!!
ACE Permissions are, by default, built into every FiveM server. If you don’t want it to be restricted, simply add this line in your server.cfg after the script is started.
add_ace builtin.everyone perms.gasmask
This will assign the ace permission to every single person. No restrictions necessary