Skip to content

moxyvv/m_discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

FiveM Discord API Version 1.0.0 License MIT

๐ŸŽฎ MDiscord - FiveM Discord API Integration

A premium, server-sided FiveM script for seamless Discord API integration.
Fetch user roles, username, avatar, guild name, and guild icon with robust caching, a configurable `/refreshroles` command, and support for ox_lib or native chat notifications. Expose powerful exports for other resources to leverage Discord data.


๐Ÿš€ Features

  • ๐Ÿ”’ Server-Sided Security: Fully server-sided to protect your Discord bot token from modders.
  • ๐Ÿ“Š User Data Retrieval: Fetches Discord username, avatar, and roles for connected players.
  • ๐Ÿฐ Guild Information: Retrieves guild name and icon, enhancing server integration.
  • โณ Caching System: Caches data for 600 seconds to minimize API calls and avoid rate limits.
  • ๐Ÿ”„ Refresh Command: /refreshroles with configurable cooldown (default 300 seconds) to force-refresh player data.
  • ๐Ÿ”” Notification Options: Exclusive support for ox_lib notifications or native FiveM chat, configurable via config.lua.
  • ๐Ÿ”— Exports: Robust exports for accessing Discord data in other resources:
    • getRoles, hasRole, getUsername, getAvatar, getGuildName, getGuildIcon, getUser.
  • ๐Ÿ“œ Professional Logging: Minimal, color-coded console logs for script initialization (^2[SUCCESS], ^1[ERROR]).

๐Ÿ“‹ Requirements

  • ๐Ÿค– Discord Bot: Requires Server Members Intent and permissions for View Channels and Read Member Information.
  • ๐Ÿ“š ox_lib (optional): Needed only for ox_lib notifications (Overextended/ox_lib).

โ™พ๏ธ Support

  • ๐Ÿ†˜ Support Server: For support with this script please message me on discord my info is ahead. Username "vxzckv"(1267881174928330764)

๐Ÿ’– Finale

  • ๐Ÿ’– Thank you!: Thank you for using this script, more comming soon!

About

Fivem Discord Intergration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages