Note: zdiscord v7 and high REQUIRE FiveM artifacts build 4890 or newer
zdiscord v5-6 REQUIRES artifacts 4800 or newer.
A Discord bot that runs in FiveM for the purpose of whitelisting, moderation and utilities using discord.js. The goal is for this this resource to be easy to setup and expand upon while giving your staff team an easy method of support and moderation of players in game without actually launching FiveM. This resource also heavily support QBCore in most of it's functionality but it's not required
- Standalone FiveM resource (no external hosting required)
- Uses Slash commands with help/suggestions
- Moderation tools (kick, ban, inspect, etc)
- QBCore commands included!
- Easy to expand and customize with modular commands!
- Can be configured with convars
- Automatic Ace Permission granting system
- Helpful exports
- bi-directional staff chat
- AND MORE!
- FiveM artifacts build 4890 or higher
- cfx-server-data in your resources (yarn (
[system]/[builders]/yarn/
) at least) - Optional: screenshot-basic if you want the /screenshot command to work
-
Get a bot application if you haven't already Guide Here
-
IMPORTANT: Enable BOTH intents on the bot page of step 1 (Picture example) *If you don't do this.. your bot will NOT work.
-
Add the bot to your server - To do this copy the following link and replace
YOUR-BOT-ID
with your bots ID then follow the invite process to your discord from the linkhttps://discord.com/api/oauth2/authorize?client_id=YOUR-BOT-ID&permissions=8&scope=bot%20applications.commands
NOTE: If the bot is already in your server you might need to run the link above again anyways to make sure it can get the needed slash command scope (unrelated to permissions) -
Copy the resource into your fiveM resources directory and make sure it's named
zdiscord
(not zdiscord-djs, zdiscord-eris or anything) -
Double check that you have the cfx-server-data resource in your resources (or yarn
[system]/[builders]/yarn/
at the very least) -
In your
server.cfg
do the following:
6a. Addensure zdiscord
(after qb-core and/or convars you may have)
6b. Add the following anywhere in your .cfg:add_ace resource.zdiscord command allow add_ace group.zdiscordstaff zdiscord.staffchat allow
-
Adjust the
config.js
variables to how you'd like them. (Optionally use Convars) -
If you missed step 2, go back and do it.. or else IT WONT WORK!
-
If you run into any errors check out the FAQ where a lot of common problems are listed and answered
Please note we only support the official, free and open source, QBCore framework and not old "qbus" or paid copies of QBCore
If you have any errors or problems please first check:
If neither of those solve your problem Open a ticket or message me on Discord (My name is Tony#1275 on discord)
I've built and polished this resource from the ground up for free and open sourced it for everybody. If you use it, enjoy it, get support from me or just want to support the project please consider sending a tip or donation through any of the following platforms:
Any contribution is greatly appreciated but you're amazing regardless โฅ
Note: as of version 7.0.0 zdiscord, it is licensed under CC-BY-NC-SA-4.0
TL;DR
- BY: Credit must be given to me, the creator. (Tony/zfbx)
- NC: Only noncommercial use of your work is permitted. (You can use in your own FiveM server which may make money itself BUT can't in any way sell zdiscord itself in any way for any commercial advantage or monetary compensation)
- SA: Adaptations must be shared under the same terms.