# Discord Rich Presence

The Discord Rich Presence **Script** for FiveM is the one-stop solution for managing Discord Sided Rich Presence/Activity!

<figure><img src="/files/SpMscVNMZqsjkgvXax7q" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/lYMR0bMzcWKlKpBIyQ8o" alt=""><figcaption></figcaption></figure>

<p align="center">If The Config Option “ShowLocation” is on and is walking.</p>

<figure><img src="/files/Ss26VDia34XVuq7i5uMK" alt=""><figcaption></figcaption></figure>

<p align="center">If The Config Option “ShowLocation” is on and is driving.</p>

<figure><img src="/files/3keRJMu3JtgPI0DQg4Mz" alt=""><figcaption></figcaption></figure>

<p align="center">If The Config Option “ShowLocation” is on and is sailing.</p>

<figure><img src="/files/jHJQ4bgMpK1XaYrXTX3i" alt=""><figcaption></figcaption></figure>

<p align="center">If The Config Option “ShowLocation” is on and is flying.</p>

<figure><img src="/files/KLr0R3SEnVmoHWYHs6oW" alt=""><figcaption><p>If The Config Option “ShowLocation” is disabled and “ShowName” is on.</p></figcaption></figure>

```lua
Config = {}

-- Discord Rich Presence Configuration
Config.AppId = ""  -- Discord Application ID (found on Discord Dev Portal)
Config.LargeIcon = ""  -- Image name set in the Discord Developer Portal
Config.SmallIcon = ""  -- Image name set in the Discord Developer Portal

-- Discord Rich Presence Player Configuration
Config.ShowName = false  -- Set to false to hide player name and server ID
Config.ShowStreetNames = true  -- Set to false to hide street names
Config.MaxPlayers = "10"  -- Maximum player count for the server

-- Discord Rich Presence Button Configuration
Config.Button1Name = "Join Server" 
Config.Button1Link = "https://cfx.re/join/CONNECT"
Config.Button2Name = "Join Discord" 
Config.Button2Link = "https://discord.gg/DISCORD" 
```

{% hint style="success" %}
Downloads

\[FREE] [Open Source Version](https://store.arcticdevlabs.com/package/7147306)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://arctic-development.gitbook.io/arctic-development/free-scripts/discord-rich-presence.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
