ESX Advanced Report

Description

  • An advanced report system and fully configurable.

The current script has not been tested on the newest ES_EXTENDED Version. This script is using player groups | ranks.

Requirements

⦁ es_extended

Installation:

  • Get esx_advanced_report folder and place it inside [ESX] directory folder.
  • Open server.cfg and add start esx_advanced_report

Github download: https://github.com/Nosmakos/ESX-ADVANCED-REPORT
The code is very smooth and clean. You are allowed to edit it as you pleased.

6 Likes

how to use this?

  • Get esx_advanced_report folder and place it inside [ESX] directory folder.
  • Open server.cfg and add start esx_advanced_report

Then in game, when someone does /report |subject| , it sents the report to the online staff that you can choose what groups are from config.lua

1 Like

For all the people who had the same error as me here is the solution!

Add fxmanifest.lua / server_script
@mysql-async/lib/MySQL.lua’,

1 Like

My bad guys, i removed it somehow. Gonna update it right now.

1 Like

how do we disable the report system that comes with essentialmode

es_admin2/server.lua LINE: 313

TriggerEvent('es:addCommand', 'report', function(source, args, user)
	TriggerClientEvent('chatMessage', source, "REPORT", {255, 0, 0}, " (^2" .. GetPlayerName(source) .." | "..source.."^0) " .. table.concat(args, " "))

	TriggerEvent("es:getPlayers", function(pl)
		for k,v in pairs(pl) do
			TriggerEvent("es:getPlayerFromId", k, function(user)
				if(user.getPermissions() > 0 and k ~= source)then
					TriggerClientEvent('chatMessage', k, "REPORT", {255, 0, 0}, " (^2" .. GetPlayerName(source) .." | "..source.."^0) " .. table.concat(args, " "))
				end
			end)
		end
	end)
end, {help = "Report a player or an issue", params = {{name = "report", help = "What you want to report"}}})

Delete these lines and you’re done!

2 Likes

I didnt understand. How can i add my self in owner? What i have to do in config?

It takes the group of the player from the users table database, for example, i am superadmin.

I am admin in database! But when i do /report the report message is not coming to me! Maybe i need essentialmode?i dont have essentialmode

Are you using latest version of es_extended? because if you do, i guess you have to play around with the identifiers. Unfortunately, i cannot support that since i dont use the latest, i have also point that above:

The current script has not been tested on the newest ES_EXTENDED Version. This script is using player groups | ranks.

I am using version ‘1.2.0’

Yes that is the latest.

Nice script dude

1 Like

Bad script, Everyone Can Visit reports :frowning:

Not true my friend, only the groups (ranks) can see those reports.

my bad, i editted this and thats my result :smiley:

1 Like

@Nosmakos, do you have by any chance any screenshot of the advanced report?

I dont think there has to be a screenshot, its just a chat message when someone does /report and only the online staff can see that report. I would also suggest adding a discord webhook for keeping in data the reports.