🔧
Wix Development
🔧
Wix Development
  • Links
    • Tebex Store
    • Discord Server
    • Youtube
    • Github
  • INFO
    • Introduction
    • Licensing System
    • Common Issues
  • Resource Documentation
    • Realistic Weapons
      • Installation
      • Inventory items
    • Free Resources
      • Discord RPC
        • Installation
        • Discord Application Guide
      • Kill Reward
        • Installation
        • SQL
        • Server Exports
Powered by GitBook
On this page

Was this helpful?

  1. Resource Documentation
  2. Free Resources
  3. Discord RPC

Installation

PreviousDiscord RPCNextDiscord Application Guide

Last updated 4 months ago

Was this helpful?

  1. Download the resource from your and drop it into your resources folder

  2. Make a Discord application at the , for more information refer to the

  3. Edit your config.lua

    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
    }
  4. Add ensure wix_discordrpc to your server.cfg

  5. Enjoy your Discord RPC and don't forget to write a rating on my Discord server

Cfx.re Portal
Discord Developer Portal
Discord Application Guide