Config.lua

Preview

Config = {}

--███████╗██████╗  █████╗ ███╗   ███╗███████╗██╗    ██╗ ██████╗ ██████╗ ██╗  ██╗
--██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝██║    ██║██╔═══██╗██╔══██╗██║ ██╔╝
--█████╗  ██████╔╝███████║██╔████╔██║█████╗  ██║ █╗ ██║██║   ██║██████╔╝█████╔╝ 
--██╔══╝  ██╔══██╗██╔══██║██║╚██╔╝██║██╔══╝  ██║███╗██║██║   ██║██╔══██╗██╔═██╗ 
--██║     ██║  ██║██║  ██║██║ ╚═╝ ██║███████╗╚███╔███╔╝╚██████╔╝██║  ██║██║  ██╗
--╚═╝     ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝ ╚══╝╚══╝  ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝

Config.Framework = 'esx' -- 'esx' | 'qb' | 'vrp' | 'ace' 

Config.GroupPermissions = { -- What permission groups can manage reports?
  	['superadmin'] = true,
    ['admin'] = true,
    ['mod'] = true,
	-- you can edit or add more
}



--░█████╗░██████╗░███████╗███╗░░██╗
--██╔══██╗██╔══██╗██╔════╝████╗░██║
--██║░░██║██████╔╝█████╗░░██╔██╗██║
--██║░░██║██╔═══╝░██╔══╝░░██║╚████║
--╚█████╔╝██║░░░░░███████╗██║░╚███║
--░╚════╝░╚═╝░░░░░╚══════╝╚═╝░░╚══╝

Config.OpenReport = "" -- disable. If you want enable, put for example "F4"
Config.ReportCommand = 'report' -- Player Command
Config.StaffCommand = 'reports' -- Staff Command



--░██████╗░███████╗███╗░░██╗███████╗██████╗░░█████╗░██╗░░░░░
--██╔════╝░██╔════╝████╗░██║██╔════╝██╔══██╗██╔══██╗██║░░░░░
--██║░░██╗░█████╗░░██╔██╗██║█████╗░░██████╔╝███████║██║░░░░░
--██║░░╚██╗██╔══╝░░██║╚████║██╔══╝░░██╔══██╗██╔══██║██║░░░░░
--╚██████╔╝███████╗██║░╚███║███████╗██║░░██║██║░░██║███████╗
--░╚═════╝░╚══════╝╚═╝░░╚══╝╚══════╝╚═╝░░╚═╝╚═╝░░╚═╝╚══════╝

Config.ReportFor1Staff = false -- if true = Only 1 staff check 1 report
Config.ScreenshotBasic = true ---- if you dont't have screenshot-basic resource put false



--███╗░░██╗░█████╗░████████╗██╗███████╗██╗░█████╗░░█████╗░████████╗██╗░█████╗░███╗░░██╗
--████╗░██║██╔══██╗╚══██╔══╝██║██╔════╝██║██╔══██╗██╔══██╗╚══██╔══╝██║██╔══██╗████╗░██║
--██╔██╗██║██║░░██║░░░██║░░░██║█████╗░░██║██║░░╚═╝███████║░░░██║░░░██║██║░░██║██╔██╗██║
--██║╚████║██║░░██║░░░██║░░░██║██╔══╝░░██║██║░░██╗██╔══██║░░░██║░░░██║██║░░██║██║╚████║
--██║░╚███║╚█████╔╝░░░██║░░░██║██║░░░░░██║╚█████╔╝██║░░██║░░░██║░░░██║╚█████╔╝██║░╚███║
--╚═╝░░╚══╝░╚════╝░░░░╚═╝░░░╚═╝╚═╝░░░░░╚═╝░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░╚════╝░╚═╝░░╚══╝

Config.Notification = function(title, message, time, types, svside, id)
    if svside then 
		TriggerClientEvent("esx:showNotification", source, message) -- ESX.
		--TriggerClientEvent('QBCore:Notify', source, message, type, length) --  QBCore.
    else 
		TriggerEvent("esx:showNotification", message) -- ESX.
		--TriggerEvent('QBCore:Notify', message, type, length) -- QBCore.
    end
end



Config.Locales = {
	['reportmenu_open'] = { title= "Support System", text = ", select one type of report", type = "info" },
	['new_report_admin_announce'] = { title= "Support System", text = "A new report has been opened", type = "success" },
	['new_report_player_announce'] = { title= "Support System", text = "The staff has been notified of your report", type = "success"},
	['admin_goto_error'] = { title= "Support System", text = "That player is no longer in the server!", type = "error" },
	['already_conclude'] = { title= "Support System", text = "This report has already been finished!", type = "error" },
	['chatmsg_player'] = { title= "Support System", text = "New chat message from Support System", type = "info" },
	['checking_error'] = { title= "Support System", text = "This report is being checked", type = "error" },
	['admin_arrived'] = { title= "Support System", text = "An admin has arrived!", type = "info" },
	['chatmsg_admin'] = { title= "Support System", text = "New chat message from Report #%s", type = "info" },
	['goto_admin'] = { title= "Support System", text = "You are assisting report #%s!", type = "info" },
	['bring_admin'] = { title= "Support System", text = "You are assisting report #%s!", type = "info" },
	['concluded'] = { title= "Support System", text = "Report #%s has been finished!", type = "success" },
	['goto_back_admin'] = { title= "Support System", text = "You have been returned to the previous position", type = "info" },
	['goto_back_player'] = { title= "Support System", text = "Success! The player has returned to the previous position", type = "info" },
	['bring_back_player'] = { title= "Support System", text = "You have been returned to the previous position", type = "info" },
	['bring_back_admin'] = { title= "Support System", text = "Success! The player has returned to the previous position", type = "info" },
}

Last updated