βοΈConfiguration
Possibility to configurate everything from commands to shortcuts to events and colors.
All translations are in the locale files displayed at the end of the showcase video.
Config = {}
Config.Locale = "en"
-- Webhook Configuration
Config.Webhooks = {
UseEmbeds = true, -- If true, sends detailed Discord embeds. If false, only sends the formatted content string.
DebugMode = false, -- If true, adds extra debug logging to the console.
SendBotData = false -- If true, sends the structured content string for bot/integration usage. If false, only sends embeds.
}
-- Database Configuration
Config.Storage = {
Type = "mysql", -- Options: "json", "mysql"
AutoCreateTables = true, -- If true, database tables will be created automatically on resource start (only for mysql)
Debug = false -- Set to true to enable debug logging for database operations and other functions
-- MySQL configuration is automatically pulled from oxmysql resource
}
Config.resolutions = "480p" -- or "1080p" , "480p" , "360p" / Image quality of the video to be recorded.
Config.timeout = 30000 -- In milliseconds, the amount of seconds the video will be divided so that it does not exceed the Discord loading size
Config.DefaultAvatar = "./img/avatar.png"
Config.ImageAPI = "https://api.fivemanage.com/api/image" -- "https://api.fivemanage.com/api/image"
Config.VideoAPI = "https://api.fivemanage.com/api/video" -- "https://api.fivemanage.com/api/video"
Config.Admin = {
"EXAMPLE", -- REPLACE WITH YOUR CFX ID MINUS "LICENSE:"
}
Config.ChatCommand = {
[1] = {
command = "adduser", -- You add a new user to the ticket.
useAdmin = true
}
}
Config.Command = {
Report = "report",
Record_Start = "startrecord",
Record_Stop = "stoprecord",
Screen_Shot = "screenshot",
Admin_Duty = "toggleReport" -- /toggleReport true/false
}
Config.CommandKeyboard = {
Report = "I",
Record_Start = "",
Record_Stop = "",
Screen_Shot = ""
}
Config.HealEvent = function(targetped)
SetEntityHealth(targetped, 100)
end
Config.ReviveEvent = function(targetped)
SetEntityHealth(targetped, 100)
end
Config.KillPlayer = function(targetped)
SetEntityHealth(targetped, 0)
end
Config.Questions = {
{
title = "Can I track the status of my report?",
text = "Yes, you can view the status of your reports in the 'My Reports' section.",
visible = false
},
{
title = "Can I track the status of my report?",
text = "Yes, you can view the status of your reports in the 'My Reports' section.",
visible = false
},
{
title = "Can I track the status of my report?",
text = "Yes, you can view the status of your reports in the 'My Reports' section.",
visible = false
},
{
title = "Can I track the status of my report?",
text = "Yes, you can view the status of your reports in the 'My Reports' section.",
visible = false
},
{
title = "Can I track the status of my report?",
text = "Yes, you can view the status of your reports in the 'My Reports' section.",
visible = false
},
{
title = "Can I track the status of my report?",
text = "Yes, you can view the status of your reports in the 'My Reports' section.",
visible = false
}
}
Config.priorityList = {
{
text = TranslateCap("critical"),
type = 'critical',
color = '#F53D6B'
},
{
text = TranslateCap("important"),
type = 'important',
color = '#FFA500'
},
{
text = TranslateCap("normal"),
type = 'normal',
color = '#4CAF50'
},
}
Config.categoryList = {
{
text = TranslateCap("system_issue"),
type = "bug",
},
{
text = TranslateCap("player_report"),
type = "player",
},
{
text = TranslateCap("question"),
type = "question",
},
}
Config.Notification = {
["newReport"] = {
title = "New Report",
description = "A new report request has been created.",
time = 5000,
icon = "ticket"
},
["addMessage"] = {
title = "New Message",
description = "New message arrived, Ticket ID: %s",
time = 5000,
icon = "message"
},
["solvedReport"] = {
title = "Report Solved",
description = "This Ticket Was Marked as Solved by %s",
time = 5000,
icon = "ticket"
},
["claim"] = {
title = "Claim Report",
description = "Claim Report, Ticket ID: %s",
time = 5000,
icon = "ticket"
},
["addMedia"] = {
title = "Add Media",
description = "New media added to the gallery.",
time = 5000,
icon = "media"
},
["addUser"] = {
title = "Add User",
description = "You were added to a report request.",
time = 5000,
icon = "ticket"
},
}
Config.death_reasons = {
["self"] = 'committed suicide',
["unknown"] = 'died',
["melee"] = 'murdered',
["torch"] = 'burned',
["knife"] = 'stabbed',
["pistol"] = 'shot with a pistol',
["sub"] = 'shot with an SMG',
["rifle"] = 'shot with a rifle',
["light"] = 'killed with a light weapon',
["shotgun"] = 'blasted with a shotgun',
["sniper"] = 'sniped',
["heavy"] = 'obliterated',
["minigun"] = 'shredded',
["bomb"] = 'blown up',
["veh"] = 'run over',
["vk"] = 'crushed',
["default"] = 'killed'
}
Config.Logs = {
["playerConnecting"] = {
text = "%s logged in to the server"
},
["playerDropped"] = {
text = "%s logged out of the server"
}
}
Get Admin Panel Access :
Add the following to your server.cfg.
add_ace group.admin zerobug-reportsystem.adminΒ allow
Make sure you are added to the admin/god group
add_principal identifier.fivem:920222 group.admin
You want to make Vehicle Control Menu smaller ?
Go to style.css and look for #zr-container
then and transform: scale(0.5);
to the code.
You can change the 0.5 value to your liking!
Set FiveManage API Keys :
The API Keys are moved to server side under this path : zerobug-reportsystem\main\server
API_KEYS = {
Discord = "",
Video = "",
Image = ""
}
Last updated