tabarra / txAdmin

The official FiveM server management platform used by over 23k servers!
https://txadmin.gg/
MIT License
819 stars 550 forks source link

[FEATURE]: Tag Players + Watchlist #628

Open tabarra opened 2 years ago

tabarra commented 2 years ago

Scope

Web, In-Game Menu, Developer API

Feature Description

As per Mr. 🐢 suggestion, a feature to be able to tag players, and a way to watch out for those players.
There should be a list of default tags (cheater, trouble maker, vip, streamer, friend, etc.), but it should also be configurable.

Use Case

If you want to tag people that paid to be unbanned (actually requested!) to pay extra attention to them.
I can also see this being used for tagging VIP players, Streamers and other People Of Interest.

Proposed Solution

  1. Create a dedicated player watchlist page with: a. List of available tags and a way to add or remove them; b. Some way of listing how many players in each tag; c. A list of players, with the tag in their name; d. A clear emphasis on those who are online; e. A button on the player card (web + ingame) to tag a player.
  2. Change the web playerlist (web + ingame) to prioritize in sorting the tagged player;
  3. For the ingame menu playerlist, add a button to filter by tag;
  4. This would probably be an array tags in the player object, or integrated with the notes thing.

Additional Info

  1. I'm pretty sure it would be needed to save to the player log the tag addition or removal;
  2. It has been requested a way to add notes to when you tag a player, this only makes sense if we do the bubble's notes ideas;
  3. Super interesting if this were integrated with the API, as in be able to tag a player through an exported function, or txAdmin emitting an event when a tagged player joins;
  4. Maybe something that allows tebex VIP integrations to mark the player?
tabarra commented 1 year ago

Just like discord roles, each tag would have an order id, which could be used as the priority in the playerlist as well as if we decide to make a connect queue.

Br0kenMaverick commented 1 year ago

Super interesting if this were integrated with the API, as in be able to tag a player through an exported function, or txAdmin emitting an event when a tagged player joins

This would be really helpful. Looking forward to it.

tabarra commented 1 year ago

This idea would also work well with "automatic tags" which would be set to online players that meet a criteria but are not saved in the database. Examples:

  1. ADMIN: #638
  2. NEWCOMER: #805
  3. WATCH LIST: Someone who had any warns or bans in the last week (configurable?).
  4. 973

tabarra commented 1 month ago

I guess would make sense for some tags to use discord roles as sources.
Just not sure what would be the best way to cache it for offline searches.

tabarra commented 1 week ago

Note to self: Temporary tags