Configuration Files
1. Adjust config.lua to your server core
Adjusting the script to your server core
Config.Core = "ESX"
Config.CoreExport = function()
return exports['es_extended']:getSharedObject()
end
Adjusting the PlayerLoaded trigger from server core to the script
Config.PlayerLoaded = "esx:playerLoaded"
Adjusting the PlayerLogoutServer trigger from server core to the script
Config.PlayerLogoutServer = "esx:playerDropped"
2. Adjust config.lua to server preferences
Menu access options
Config.CommandName = 'reports'
Config.KeyBind = nil
Config.KeyDescription = nil
DatabaseChatSaving: Every what time should the chats of reports be saved in the database
Config.DatabaseChatSaving = 10 * 60 * 1000
DeleteReportOnClose: If the ticket is closed it will be automatically deleted and the Reports History section will not be available.
Config.DeleteReportOnClose = false
SaveBySelfOwnTicketToHistory: When a player closes a report on his own, should it be saved to history?
Config.SaveBySelfOwnTicketToHistory = false
ReportsHistoryTimeLimit: When the number of seconds specified in this option has passed, older reports after this time will be deleted automatically and will no longer be available. (If you don't want the reports to delete themselves, set as -1)
Config.ReportsHistoryTimeLimit = 432000 -- 432000 = 5 days
Permissions: In this section, you can adjust the permissions for each role separately.
Config.Permissions = {
["menu.reports_list"] = {
admin = true,
moderator = true,
support = true,
},
["menu.reports_history"] = {
admin = true,
moderator = true,
},
["action.claim"] = {
admin = true,
moderator = true,
support = true,
},
["action.close"] = {
admin = true,
moderator = true,
support = true,
},
["action.kick"] = {
admin = true,
moderator = true,
},
["action.ban"] = {
admin = true,
},
["action.teleport_to"] = {
admin = true,
moderator = true,
support = true,
},
["action.bring"] = {
admin = true,
moderator = true,
support = true,
}
}
Last updated
Was this helpful?