txAdmin icon indicating copy to clipboard operation
txAdmin copied to clipboard

[FEATURE]: Extension support

Open KindCoder-no opened this issue 1 year ago • 4 comments

Scope

Web, Developer API

Feature Description

I would like an opportunity for developers to add extensions to the web panel. So users can integrate other systems directly into their txAdmin panel.

Use Case

Im developing a system that different roleplay servers can share their experience about users. Example (Of my system): When a user is banned on server 1, it gets saved to my system. Then when the same user wants to play on server 2, the staff checks (Or server automatically declines with our fivem resource) if the user is banned on another server (server 1 in this example).

It would be nice to add a custom page/extension to txAdmin to show banned users, logs etc... from my system. And if txAdmin would open up for extensions to their panel, it would be easier for the users to maintenance everything on one panel.

Proposed Solution

Add possibility to create extensions for txAdmin web ui. Extension could be made in for example React or another javascript framework, to easily do maintenance and development.

Additional Info

No response

KindCoder-no avatar Nov 24 '23 13:11 KindCoder-no

Being able to make addons for txAdmin is an awesome idea,. However your use case is pretty sketchy. Global ban systems are generally very frowned upon in the community.

Have a read of dot point 3 in https://docs.fivem.net/docs/support/resource-faq/#what-are-disallowed-resources

Flambaa avatar Nov 24 '23 14:11 Flambaa

I see your point. We have made the system so that the server owner chooses if players banned on another server is automatically banned. Also we have an option to only ban players that has been banned on 3 different servers or more

KindCoder-no avatar Nov 24 '23 14:11 KindCoder-no

Indeed Flamba is correct.
But i'll say that an extension system is actually planned, based on adaptive cards.

tabarra avatar Nov 24 '23 14:11 tabarra

That is cool. I think extensions could be cool for many different integrations. But it should maybe have some permission config integrated

KindCoder-no avatar Nov 26 '23 21:11 KindCoder-no