xdiscord - The Ultimate FiveM Discord Bot

A script by ricepunk

No reviews yet.
xdiscord - The Ultimate FiveM Discord Bot main image

Price

Unknown

Full Description

Elevate your FiveM server management to the next level with xdiscord, the all-in-one Discord bot designed for unparalleled control and seamless integration.

Whether you’re running a massive community or a private server, xdiscord provides the powerful tools you need to manage your server, players, and resources directly from the comfort of your Discord server. Built for performance and compatibility, it offers out-of-the-box support for QBCore and QBOX frameworks.


:star: Key Features

  • :crown: Total Server Control: Manage resources, monitor performance, and control the in-game world.

  • :policeman: Advanced Player Administration: Kick, ban, screenshot, teleport, and manage players with precision.

  • :briefcase: Deep Character & Inventory Insight: View and manage character data (including jobs) and inventories for online and offline players.

  • :red_car: Complete Vehicle Management: Spawn, list, and inspect any vehicle on your server in real-time.

  • :lock: Role-Based Permissions: Secure, configurable access control for all commands.

  • :sparkles: Context Menu Integration: Right-click a user to check if they’re online in the server.

  • :zap: Smart Autocompletion: Intuitive command suggestions for players, resources, items, and vehicle models.

  • :rocket: Latest Discord.js: Built with the most recent version of Discord.js for cutting-edge features and stability.

  • :globe_with_meridians: Framework Ready: Works seamlessly with QBCore and QBOX.


:gear: Technical Details

  • Language: Developed with TypeScript for type safety and improved developer experience.

  • Full Source Code: You receive the complete, unminified source code, allowing for full transparency and customization.

  • Development & Building: Comprehensive documentation is available in docs/development.md detailing how to set up your development environment, modify the source code, and build the resource.

  • Frameworks: Natively supports QBCore and QBOX. Can be adapted to other frameworks.

  • Performance: Optimized for low resource usage.

  • Dependencies: Standalone, with clear setup instructions.

  • Database: Requires MySQL >= 5.7 or MariaDB >= 10.2.

FiveM Exports (API)

xdiscord exposes a powerful API for other FiveM resources to interact with Discord. The identifier parameter in these functions accepts either a FiveM player source ID or a Discord user ID.

  • getDiscordId: Retrieve a player’s Discord ID.

  • getName: Get a Discord member’s display name.

  • getRoles: Fetch a Discord member’s roles.

  • hasRole: Check if a Discord member has specific roles (accepts a single role string or an array of role strings).

  • isInGuild: Verify if a Discord member is in the server’s Discord guild.

  • createLog: Send an embed to a configured webhook.

xdiscord is more than just a bot; it’s your server’s new command center. Streamline your administrative tasks, empower your staff, and spend more time creating amazing experiences for your players!

:speech_balloon: Commands

A comprehensive list of all available commands.


/character — Manage character data (online & offline)
  • view <id> — View online character data.
  • update
    • name <id> <firstname> <lastname> — Update an online character’s name.
    • job <id> <job> <grade> — Update an online character’s job.
  • offline
    • view <id> — View offline character data.
    • name <id> <firstname> <lastname> — Update an offline character’s name.
    • job <id> <job> <grade> — Update an offline character’s job.

/connect — Server connection info
  • show — Display how to connect to the FiveM server.

/inventory — Manage player inventories
  • view <id> — View a player’s inventory.
  • give <id> <item> <amount> — Give an item to a player.
  • remove <id> <item> <amount> — Remove an item from a player.
  • clear <id> — Clear a player’s inventory.
  • find-item <item> [min-amount] [limit] — Find players with a specific item.

/player — Player administration commands
  • list — List all online players.
  • info <id> — Get information about a player.
  • message <id> <message> — Send a direct message to a player in-game.
  • screenshot <id> — Take a screenshot of a player’s screen.
  • kill <id> — Kill a player.
  • revive <id> — Revive a player.
  • kick <id> [reason] — Kick a player from the server.
  • ban <id> [reason] — Ban a player from the server.

/resource — Control server resources
  • list — List all server resources.
  • info <name> — Get information about a resource.
  • start <name> — Start a resource.
  • stop <name> — Stop a resource.
  • restart <name> — Restart a resource.

/server — Manage and monitor the FiveM server
  • info — Get server information.
  • performance — Get server performance metrics.
  • announce <message> — Send a global announcement to the server.
  • time <hour> [minute] — Set the in-game time.
  • weather <type> — Set the in-game weather.
  • blackout <state> — Enable or disable server-wide blackout.
  • freezetime <state> — Freeze or unfreeze in-game time.
  • richest [limit] — Show the richest players.
  • clear
    • all — Clean up all entities (vehicles, peds, props).
    • props — Clean up all props.
    • peds — Clean up all peds.
    • vehicles [owned] — Clean up all vehicles.
  • tx
    • restart — Restart the server via txAdmin.

/teleport — Move players instantly
  • player
    • location <id> <location> [vehicle] — Teleport a player to a location.
    • coords <id> <coords> [vehicle] — Teleport a player to coordinates.
  • all
    • location <location> — Teleport all players to a location.
    • coords <coords> — Teleport all players to coordinates.

/vehicle — Vehicle management
  • list — List all spawned vehicles.
  • give <id> <vehicle> [plate] — Give a vehicle to a player.
  • info
    • entity <id> — Get vehicle info by its server entity ID.
    • plate <plate> — Get vehicle info by its license plate.

/sticky — Sticky message management
  • add <channel> <content> [cooldown] — Add a sticky message to a channel.
  • remove <channel> — Remove a sticky message from a channel.
  • list — List all active sticky messages.

:sparkles: Command Preview

🧍‍♂️ /player list — List all online players

playerlist

🎁 /inventory give — Give an item to a player

inventory-give

🔍 /inventory find-item — Find players with a specific item

find-item

:bulb: Note: The preview was tested with 20,000 player rows in the database — the command handled it smoothly with no performance issues.

💰 /server richest — Show the richest players

richest

🚗 /vehicle list — List all spawned vehicles

vehicle

✏️ /character offline name — Update an offline character's name

character-name

:speech_balloon: Support & Customization

Need help, have an idea for a new feature, or want a custom command created?

:shopping_cart: Purchase

  • Get xdiscord here: Tebex
Code is accessible Yes
Subscription-based No
Lines (approximately) 4000+
Requirements MySQL >= 5.7 or MariaDB >= 10.2
Support Yes

Config Merger
Have you tried Config Merger? Merge your configs easily