tabarra / txAdmin

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

[FEATURE]: Dynamic info in Discord Embed #866

Open Tallerik opened 1 year ago

Tallerik commented 1 year ago

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

etc.

Proposed Solution

No response

Additional Info

Screenshot of a mockup how the embed could look: grafik

tabarra commented 1 year ago

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 commented 1 year ago

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