Further documentation (including updates) of this script will be located at DiscordReports | Badger Docs
Version 1.0
What is it?
DiscordReports is a script I made way back in August of 2019, but I never actually got around to releasing it. I know there is another discord report script on the forums made by my old good friend @ApolloCore which you can find below. However, my script is a little different in the way it works and has some quite unique features I thought would be useful. So therefore in my quest to become the #1 open source developer on GitHub, I am releasing it today for your use cases. Jokes aside, it’s a really cool and nifty script that can really help you staffing your server.
FiveM Report Player Script With Discord Integration
This is a basic script based off of @FAXES semi-release for reporting players. I added embeds and made the overall system much better!
Features:
Discord Webhook Integration with Embeds
Displays Person being Reported, the Reporter, and The Reason for Report
Optionally - you can add a role to ping when a report has been filed.
Suggestion fill in that shows them that it must be `/report [id] [reason]
Installation
Download the files from the G…
Images
Report Sent Confirmation
Discord Webhook Report [displayIdentifiers = true]
Discord Webhook Report [displayIdentifiers = false]
What a staff member will see — (Reporter Name) [ID Reported]
Installation
You will need to find the configuration section within the server.lua
You will see the below block of code
You can choose to put displayIdentifiers
as true
or false
Refer to above Images
of what this will do
You also need to set up the webhookURL
for where the script will post the reports within Discord
You will need to give your staff group’s the permission BadgerReports.See
in order to see the action reports within the server
-- Config --
webhookURL = ''
displayIdentifiers = true;
Download
18 Likes
Well done. Keep up the work
2 Likes
Installed it! Works perfectly. Thanks a lot
2 Likes
Best feature of this script is that it tags their Discord @ in the Report so we don’t we have to go through https://discord.id/
Great release Badger
1 Like
alpiso
April 16, 2020, 8:15pm
6
I have been testing over 10 reporting scripts and they have all indicated a problem. Right now I find this and am excited to try it out. As soon as I try, I will comment on the result
1 Like
can you see the report in game or only in discord?
1 Like
You can see it in-game as well, so long as your user group you are in with ACE permissions has the permission node BadgerReports.See
2 Likes
then would it be “add_ace group.admin Badge Reports.See allow” or not?
1 Like
add_ace group.admin BadgerReports.See allow
1 Like
thank you very much colleague
1 Like
alpiso
April 17, 2020, 1:14pm
13
It looks very good, it is didactic, it serves to learn Lua. His Wiki is detailed. This is simply a great launch, and even the best, for my taste, of this type.
1 Like
Thank you very much! Appreciate the kind words!
1 Like
hi can you help me i add
add_ace group.mod BadgerReports.See allow
add_ace group.admin BadgerReports.See allow
add_ace group.superadmin BadgerReports.See allow
and still user can see the report, how to fix it that only staff can see reports?
Request: Add role ping so you can set it to ping a role in discord when a report is created like @staff then the report embend.
Just add it yourself, it’s not really complex or hard to add this
Welp can’t seem to do it and i asked in your discord but so far no response
Resource seems to not work unless I restart it after the server launches. Anyone encounter this problem before?
is there any way to make it @ a discord role?
1 Like