Note: zdiscord v7 and high REQUIRE FiveM artifacts build 4890 or newer
zdiscord v5-6 REQUIRES artifacts 4800 or newer.
Older artifacts will require use of the v4 eris branch instead.
Setup | Donate | FAQ | Support | Docs
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
[system]/[builders]/yarn/
) at least)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 link https://discord.com/api/oauth2/authorize?client_id=YOUR-BOT-ID&permissions=116928&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. Add ensure 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
zdiscord © 2021 by zfbx is licensed under Attribution-NonCommercial-ShareAlike 4.0 International
TL;DR