Skip to content

Tiaansu/samp-discord-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SA:MP/open.mp Discord Rich Presence plugin

This plugin features custom server logos

How to add your own servers with logos:

  1. Fork the repository
  2. Create ip_port.json (e.g. 127.0.0.1_7777.json) file in servers folder

Important

For some reason, IP address are only allowed.
If you know how can this plugin, please open a pull request.

  1. Fill-up this (all fields are optional)
{
    "application_id": "",
    "logo": "",
    "small_image": "",
    "large_text": "",
    "small_text": "",
    "details": "",
    "state": "",
    "buttons": []
}

button structure:

{
    "label": "",
    "url": ""
}

example:

{
    // ... other config
    "buttons": [
        {
            "label": "",
            "url": ""
        }
    ]
}
  1. Create pull request
  2. Wait to be accepted.

Placeholders

This plugin also has support for placeholders.

Current placeholders:

  • SERVER_NAME
  • SERVER_IP
  • SERVER_PORT
  • USERNAME
  • PLAYERS
  • MAX_PLAYERS
  • LANGUAGE
  • GAMEMODE

Example usage of placeholders

Playing in {SERVER_NAME}.

Preview

Screenshot Screenshot Screenshot

Special thanks to:

  • Hual - for creating samp-discord-plugin
  • open.mp team - the query.cpp is from one of their projects, I just asked AI to convert it to C++ from Rust.

About

SAMP/open.mp Discord Rich Presence plugin

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •