xcs-richpresence
Ultra-lightweight Discord Rich Presence for FiveM. Displays your server name, player name, live player count (e.g. 1/128), and real-time FPS in Discord's "Playing" status — with custom server logo, small icon, and up to 2 action buttons (Discord invite, website, etc.).
Built for performance: zero per-frame loops, event-driven player counts, diff-checked updates (only pushes when something actually changes), and accumulator-based FPS sampling instead of rolling buffers. Idles at 0.00ms in resmon and barely registers when active.
Features
- Server name • Player name • Players online/max • Live FPS
- Custom large logo + small icon with tooltips
- Up to 2 clickable buttons (Discord, website, store, etc.)
- Fully configurable via
config.lua— no code edits needed - Compatible with all modern FiveM builds (auto-detects
SetRichPresence/SetDiscordRichPresence)
Performance
- No per-frame threads
- Event-driven player count sync (no polling)
- Diff-checks before every Discord native call
- 0.00ms idle / ~0.01ms active
Setup
- Create a Discord application at https://discord.com/developers/applications
- Upload your logo under Rich Presence → Art Assets
- Paste your Application ID into
config.lua -
ensure xcs-richpresencein yourserver.cfg
