FearlessStudios

Set up Discord Rich Presence

Connect Discord artwork, then decide whether to show character names.

Add your artwork and button

  1. Create one Discord application, copy its application ID, and upload the large image you want on the status.

  2. Copy the exact image asset name into Config.Discord.RichPresenceLogoName and the ID into Config.Discord.AppID. Both are required.

  3. Only fill in Config.Discord.SmallRichPresenceLogoName if you want a small image. Add Config.Discord.Button.ButtonLink if you want a button. Change Config.Discord.Button.ButtonText to use your own label.

  4. Start FS-Lib before FS-DiscordStatus in server.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 wantChange in config.lua
Player count and name togetherSet Config.Character.DisplayMode to "combined".
Only one of themUse "count" or "name".
Switch between the twoKeep 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.