Configuration
This guide explains how to configure the NF_ReportSystem for your server.
Basic Configuration
Framework Selection
Config.Framework = 'esx' -- Options: 'esx', 'qbcore', 'vrp', 'ace', 'custom', 'SteamHEX'Framework Permissions
Config.Framework_perms = {
['admin'] = true,
['headadmin'] = true,
['owner'] = true,
['headhelper'] = false,
['helper'] = false,
['user'] = false,
}Admin List (for SteamHEX)
Config.AdminList = {
'steam:11000013cb8b8ba',
}Command Configuration
Player Commands
Config.ReportCommand = 'report' -- Command for players to submit reportsAdmin Commands
Config.ReportAdminCommand = 'reports' -- Command for admins to view reportsUI Configuration
Colors
Config.mainColor = "#0a58ca" -- Main color for UI elementsUI Text
Config.UI = {
["Press_For_Back"] = "Press For Back",
["Report_System"] = "Report System",
["PLAYER"] = "PLAYER",
["PLAYER_Desc"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
["BUG"] = "BUG",
["BUG_Desc"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
["QUESTION"] = "QUESTION",
["QUESTION_Desc"] = "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
-- ... other UI text entries
}Screenshot Configuration
Basic Screenshot
Config.ScreenshotBasic = true -- Enable/disable screenshot functionalityAPI Configuration
Discord Bot
Config.Bot_Token = 'YOUR_DISCORD_BOT_TOKEN' -- Discord bot token for avatars
Config.BotName = 'Test' -- Bot nameSteam API
Config.SteamApiKey = 'YOUR_STEAM_API_KEY' -- Steam API key for avatarsServer Information
Config.ServerName = 'Test' -- Server name
Config.IconURL = "" -- Server icon URLNotification System
Notification Function
Config.Notify = function(title, message, time, types, svside, id)
if svside then
TriggerClientEvent('NF_ReportSystem:Notify', id, title, message, time, types)
else
TriggerEvent('NF_ReportSystem:Notify', title, message, time, types)
end
endNotification Messages
Config.Locales = {
['new_report_admin_announce'] = {
title = "Report System",
text = "New Report Some one needs help!",
type = "success"
},
['new_report_player_announce'] = {
title = "Report System",
text = "Report successfully sent to the STAFF!",
type = "announce"
},
-- ... other notification messages
}Report Types
The system supports three types of reports:
Player Reports
Bug Reports
Questions
Admin Features
View all reports
Take screenshots
Teleport to players
Bring players
Spectate players
Chat with players
Close reports
Player Features
Submit reports
Chat with admins
Cancel reports
View report status
Best Practices
API Keys
Keep your Discord bot token and Steam API key secure
Never share these keys in public repositories
Regularly rotate keys for security
Framework Selection
Choose the correct framework for your server
Configure permissions according to your server's hierarchy
Test framework integration before deployment
UI Customization
Customize UI text to match your server's language
Adjust colors to match your server's theme
Test UI on different screen resolutions
Screenshot System
Test screenshot functionality before enabling
Ensure proper permissions for screenshot storage
Monitor storage usage for screenshots
Admin Management
Regularly update admin list when using SteamHEX
Review and update permission levels
Monitor admin actions for abuse
Notification System
Test notifications on different frameworks
Customize notification messages
Ensure notifications are visible but not intrusive
Security
Regularly update the script
Monitor for unauthorized access
Keep server information private
Performance
Monitor resource usage
Optimize screenshot storage
Clean up old reports periodically
Last updated