Installation
Download the resource from your Cfx.re Portal and drop it into your resources folder
Make a Discord application at the Discord Developer Portal, for more information refer to the Discord Application Guide
Edit your
config.lua
-- __ _________ __ _____ _ _ -- \ \ / /_ _\ \ / / | __ \ | | | | -- \ \ /\ / / | | \ V / | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ -- \ \/ \/ / | | > < | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| -- \ /\ / _| |_ / . \ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ -- \/ \/ |_____/_/ \_\ |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| -- | | -- |_| Config = {} Config.UpdateInterval = 60000 -- Update interval in milliseconds (default: 60 seconds) Config.ApplicationID = 'discord_app_id' -- Discord Application ID (If you need help refer to the documentation https://wix-development.gitbook.io/documentation/free/discord-rpc/discord-application-guide) Config.LargeImageKey = 'large_image_name' -- Name of the large image assetq Config.LargeImageText = 'large_image_text' -- Text displayed when hovering over the large image (If you need help refer to the documentation https://wix-development.gitbook.io/documentation/free/discord-rpc/discord-application-guide) Config.SmallImageKey = 'small_image_name' -- Name of the small image asset Config.SmallImageText = 'small_image_text' -- Text displayed when hovering over the small image (If you need help refer to the documentation https://wix-development.gitbook.io/documentation/free/discord-rpc/discord-application-guide) -- Details and state text with placeholders -- {playerName} - The name of the player -- {playerID} - The ID of the player -- {playerCount} - The number of players online Config.Details = '{playerName} [{playerID}] | Players: {playerCount}' -- Buttons with labels and URLs Config.Buttons = { {label = 'Discord', url = 'https:/discord.gg/invite'}, -- Example: Discord button {label = 'Connect', url = 'https://cfx.re/join/xxxxxx'}, -- Example: Connect button }
Add
ensure wix_discordrpc
to your server.cfgEnjoy your Discord RPC and don't forget to write a rating on my Discord server
Last updated
Was this helpful?