Discord Rich Presence [OneSync Infinity] [ESX]

Discord Rich Presence [ESX]

ABOUT:

  • Advanced discord rich presence…
  • Works perfect with OneSync Infinity.

Download

MY OTHER RELEASES

https://forum.cfx.re/t/blackmarket-system-esx/4443817/2

3 Likes

Add a preview.

1 Like

Preview would be good

Currently i am unable to get one but if you get one and share it then i can edit the post.

What does this do?

It’s a discord rich presence? When people connect to your server it shows it via their activity if they have it on.

2 Likes

Any help?

You need this.

1 Like


I get the same error with kimi_callbacks started

rename it to callback

Hi, I’m genuinely curious as this is not the first time I’ve seen resources use weird roundabout methods to do built-in stuff.

  1. Why does this require the “callback” resource requirement? You can do exactly the same with exports. It even uses exports to make exports??
  2. Why does this require “ESX” to get the player name? GetPlayerName exists.
  3. Why does this require “sp-lib” to get the amount of players? GetPlayers with the # prefix exists.
  4. Why do you need to wait for the player to load to update the rich presence? You already set it before this occurs anyways and is completely redundant.
  5. Why do you need to ASK the server every 5 seconds what the current state is (imagine 750 players doing that LOL), when you could instead have the server relay the changes when they occur or at some interval.

This resource could be made with exactly zero dependencies, and even with such a small script it’s still bloated. I’m amazed.

1 Like
  1. How are you planning to get server-sided value from the client-side with exports?
  2. To get RP name if you wish you can use it this is how I coded.
  3. For infinity?

This is a good point, events could suffice in this scenario as you really don’t need the player to request the data from the server all the time.

If you can make it better feel free to send a PR i never said i am best about LUA.

1 Like

Pasali po sa server sir