How to automatically get txAdmin with group?

How can I make it that if a player gets admin rank, he also gets access to the in-game txAdmin panel and doesn’t have to be added manually? I’ve seen this on many servers, but I can’t figure it out.

I’ve never heard of adding people to txAdmin automatically and it doesn’t have any exports for such a thing.

Groups/admin rank is generally a framework thing, unless referring to ACL – but txAdmin doesn’t use that for the ingame panel afaik.

But I saw on a server that there is an admin script and there is a command to change the player’s group in the SQL (if I remember correctly, it was /addadmin [id] [level]), and if someone is given an admin rank, they also get permissions in the in-game txadmin panel, so it doesn’t need to be added manually. Can I get some help with this, if possible?

txAdmin is open source, you may do this yourself if you wanted to, but for now, they have no API. Not sure if the admins JSON file is consistently read but you may directly add an admin via said JSON.