Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]: Dynamic info in Discord Embed #866

Open
Tallerik opened this issue Aug 19, 2023 · 2 comments
Open

[FEATURE]: Dynamic info in Discord Embed #866

Tallerik opened this issue Aug 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Tallerik
Copy link

Scope

Web

Feature Description

Hey, I would like to suggest the ability to include information from the vars section of /info.json in the Discord status embed. This makes it possible to show custom pieces of information which may be important.

Use Case

  • Show the players, for example, how many police officers (or other classes) are currently on duty.
  • Show what minigame is currently played.
  • Show a server specific dynamic information.

etc.

Proposed Solution

No response

Additional Info

Screenshot of a mockup how the embed could look:
grafik

@Tallerik Tallerik added the enhancement New feature or request label Aug 19, 2023
@tabarra
Copy link
Owner

tabarra commented Aug 19, 2023

I like this suggestion.
BUT I do not like the idea of txAdmin constantly querying /info.json for those numbers, so I just requested to the Cfx team for an event to be fired when any server convar is updated, which would not just allow me to have the variables you requested, but also stuff like sv_projectDesc and maybe the server icon, which I could show on the interface.

ninja edit: Will leave this request open and let's hope the Cfx team likes the idea as well.

@Tallerik
Copy link
Author

Nice to hear that you like the idea. An event would be the ideal solution. I could also see an txAdmin event or GetConvar() as workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants