> For the complete documentation index, see [llms.txt](https://adminpluss-development.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adminpluss-development.gitbook.io/docs/paid-scripts/qb-qbox-esx-discord-presence-paid.md).

# \[QB/QBOX/ESX] Discord Presence \[PAID]

<figure><img src="https://4274191150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcaPZpEbITNtKQaqEE6V%2Fuploads%2FJR5cfumlfzr9GQ0ZrYfo%2Fdiscordpr.png?alt=media&amp;token=40b08448-38ca-4b49-a40b-1ca805d8386e" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This script allows you toggle various many different options to display on a users profiles (presence) when their inside of your server. If a player has activity privacy enabled, any user can click on their profile & view how much people are inside of your server, alongside a toggable option to see if there's a queue - compatible with (v-queue & n4\_queue).
{% endhint %}

<figure><img src="https://4274191150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcaPZpEbITNtKQaqEE6V%2Fuploads%2FCy3y3Gv3t8FZT4Pa6RRc%2Ffeatures.png?alt=media&amp;token=0477a285-417f-4ada-8bee-4413fec70123" alt=""><figcaption></figcaption></figure>

Character Names 👨

> Disable/enable character names to show in presence.

Street Names 🏢

> Disable/enable street names to show in presence.

**Message** 💬

> Configurable text.

```
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
```

<figure><img src="https://4274191150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcaPZpEbITNtKQaqEE6V%2Fuploads%2FKolaTzag0myC87a8DXZz%2Finstall.png?alt=media&amp;token=3165a02a-6af8-42f2-b619-3388fb5bc51d" alt=""><figcaption></figcaption></figure>

* This resource is drag/drop. You will just have to change your framework inside shared file to whichever framework you're on & then enable whichever option you would like. You will also need to add the following inside of your server.cfg after you've dropped the file into your resources.

> <mark style="color:orange;">ensure adminplus-discordpresence</mark>

{% hint style="warning" %}
Feel free to check the shared folder to be able to enable/disable some of the options the script provides.
{% endhint %}

```lua
-- ███████████████████████████████████████████████████████████████████████████ --

queueConfig = {}

-- Discord Queue Presence
-- (Useful to add your own Discord Presence so it shows in your discord status) -- 
queueConfig.Enable = false
queueConfig.Framework = 'ESX' -- QB or QBOX or ESX (IF QB IS ENABLED REMOVE ESX FROM FXMANIFEST CLIENT/SERVER & UNCOMMENT THE QB ONE)

-- use one or the other --
queueConfig.vQueue = false
queueConfig.n4Queue = false

queueConfig.Message = 'Roaming the streets.'
queueConfig.Streetnames = false
queueConfig.CharacterNames = false

queueConfig.Discord = {

    -- CREATE A BOT ON DISCORD APPLICATION APP -- 
    -- (ENABLE PERMISSION TO SEE MEMBERS) --

    DiscordPresence = 45000, -- how long it takes to update to presence. (higher MS = better / suggested to keep above 30s)
    ApplicationID = 'ENTER_APPLICATION_ID_FROM_BOT',
    Asset = 'logo_name',

    SetDiscordRichPresenceAssetText = 'ENTER_SERVER_NAME',
    SetDiscordRichPresenceAssetSmall = 'logo_name',
    SetDiscordRichPresenceAssetSmallText = '',

    -- These are the buttons that show in discord under the persons name
    SetDiscordRichPresenceAction = 'Discord',
    SetDiscordRichPresenceActionText = 'https://discord.gg/servername',
    SetDiscordRichPresenceAction2 = 'Store',
    SetDiscordRichPresenceActionText2 = 'https://tebex.tebex.io/',
    --

    MaxPlayers = '200',

}

-- ███████████████████████████████████████████████████████████████████████████ --
```

```
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
```

<figure><img src="https://4274191150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcaPZpEbITNtKQaqEE6V%2Fuploads%2FzUBw2K8iJtQN1PmrvtyY%2Fchangelog.png?alt=media&amp;token=a35ca929-89e9-4d76-a7e1-5967797b7a25" alt=""><figcaption></figcaption></figure>

```markup
V 1.0.0
```

* Original Release

```
v 1.0.1
```

> Fixed streetnames & queue integration.

```
V 1.0.2
```

> Added character names configurable option.

```
V 1.0.5
```

> Added QBOX Compatibility ✅

```
V 1.0.6
```

> Huge Optimization (must update)

<mark style="color:red;">Changed Files:</mark>

* adminplus-discordpresence/client/cl\_discord.lua (replace)
* adminplus-discordpresence/server/sv\_discord.lua (replace)

```
V 1.1.1
```

Automatic set sv\_maxclients integration (updates max players if manipulated while server is live).

<mark style="color:red;">Changed Files:</mark>

* adminplus-discordpresence/ALL

<pre><code><strong>⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
</strong></code></pre>

<figure><img src="https://4274191150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcaPZpEbITNtKQaqEE6V%2Fuploads%2FNwMogM8VwPQ3aPHa5VUu%2Fpurchase.png?alt=media&amp;token=b0f72168-8d77-4fea-b347-8735abd1e002" alt=""><figcaption></figcaption></figure>

* [<mark style="color:yellow;">Tebex (purchase)</mark>](https://adminplus.tebex.io/package/6165657)
* [<mark style="color:yellow;">Support (discord)</mark>](https://discord.gg/J2mP9kJJ83)
