Configuration

1. Adjust config.lua to your server core

  1. Adjusting the script to your server core

Config.Core = "ESX"
Config.CoreExport = function()
    return exports['es_extended']:getSharedObject()
end

  1. Adjusting the PlayerLoaded trigger from server core to the script

Config.PlayerLoaded = "esx:playerLoaded"

  1. Adjusting the PlayerLogoutServer trigger from server core to the script

Config.PlayerLogoutServer = "esx:playerDropped"

2. Adjust config.lua to server preferences

  1. Menu access options

Config.CommandName = 'reports'
Config.KeyBind = nil
Config.KeyDescription = nil

  1. DatabaseChatSaving: Every what time should the chats of reports be saved in the database

Config.DatabaseChatSaving = 10 * 60 * 1000

  1. DeleteReportOnClose: If the ticket is closed it will be automatically deleted and the Reports History section will not be available.

Config.DeleteReportOnClose = false

  1. SaveBySelfOwnTicketToHistory: When a player closes a report on his own, should it be saved to history?

Config.SaveBySelfOwnTicketToHistory = false

  1. 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

  1. 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