Set up Discord Rich Presence
Connect Discord artwork, then decide whether to show character names.
Add your artwork and button
-
Create one Discord application, copy its application ID, and upload the large image you want on the status.
-
Copy the exact image asset name into
Config.Discord.RichPresenceLogoNameand the ID intoConfig.Discord.AppID. Both are required. -
Only fill in
Config.Discord.SmallRichPresenceLogoNameif you want a small image. AddConfig.Discord.Button.ButtonLinkif you want a button. ChangeConfig.Discord.Button.ButtonTextto use your own label. -
Start
FS-LibbeforeFS-DiscordStatusinserver.cfg. Restart FS-DiscordStatus, then join with Discord open. Check your large image before configuring character details.
Show player count and character names
| What you want | Change in config.lua |
|---|---|
| Player count and name together | Set Config.Character.DisplayMode to "combined". |
| Only one of them | Use "count" or "name". |
| Switch between the two | Keep the default "alternate". It switches about every 10 seconds when a name is available. |
Set Config.Character.Framework only if you need to override detection. Auto tries a running qbx_core, then qb-core, then es_extended (set the selector to "esx"); otherwise it uses standalone. Standalone does not resolve a framework character name.
Config.Character.DisplayMode = "combined"Discord app settings
These values live under Config.Discord. Match the asset names exactly as shown in your Discord application.
Prop
Type
Update rate
The presence and character-name updates can run at different rates.
Prop
Type
Character name display
These values live under Config.Character. Choose combined to show the player count and name together, count or name to show only one, or alternate to swap between them.
Prop
Type
Custom character providers
Version 1.1.0 handles QB, QBX, ESX, and standalone using the selectors above. There’s no callback or registration export for your own provider. An unrecognized selector, including Framework = 'custom', won’t resolve a name.
The network events used to request and receive names are internal synchronization, not a persistent custom-provider API. Periodic refresh can overwrite an externally injected name. Adding another framework requires a source change to the server-side name resolver; only config.lua is listed as escrow-open in the inspected manifest. Request support for your provider if that server code is locked. Do not place account credentials or database queries in client code.
Start the selected framework and FS-Lib before FS-DiscordStatus. Test a loaded character, logout, character switch, and unknown name. Wait for Config.Character.RefreshSeconds and the presence update interval before checking the result; HideIfUnknown may intentionally hide unresolved names.