Configuration
There are two files you edit:
config.lua: commands, staff groups, limits, topics, duty, inventory and so on. Players download this file, so never put secrets in it.config_server.lua: tokens and keys for Discord and the screenshot host. It's never sent to players.
Keep your Discord bot token and webhooks in config_server.lua only. Never paste them into config.lua, and never share config_server.lua with anyone.
General
| Setting | Default | What it does |
|---|---|---|
Config.Framework | 'auto' | auto, esx, qbcore, qbox or standalone |
Config.PlayerCommand | 'greport' | Opens the player side |
Config.StaffCommand | 'greports' | Opens the staff side |
Config.AutoMigrate | true | Creates and updates the database tables on start |
Config.ReportForm | 'quick' | quick = one screen, guided = one question at a time |
Config.HideHotkey | 'K' | Hides the panel so you can keep playing. '' turns it off |
Config.Brand | The name and tags shown in the panel |
Staff
Config.StaffGroups = {
esx = { 'admin', 'superadmin', 'mod', 'helper' },
qbcore = { 'admin', 'god', 'mod' },
qbox = { 'admin', 'god', 'mod' },
ace = 'gs-report.staff',
}
Config.Duty = {
defaultOn = true, -- staff start on duty when they join
notifyOffDuty = false, -- off duty staff still get pop-ups and sounds
command = 'reportduty', -- '' for no command
}
Config.Tagsis a list of suggested tags.Config.NotifyPlayeris the function used to notify players. Swap it if you use another notify script.
Player panel
| Setting | What it does |
|---|---|
Config.Inventory | Which inventory staff see items from: auto, ox, qb, qs, esx, custom or none |
Config.CustomData | Extra rows, for example { label = 'Phone', get = function(src, identifier) return '555-0100' end } |
Config.Playtime | Hours played and when a player counts as new. It counts from the day you install the script. If another script tracks play time, set provider to a function that returns seconds |
Config.Map | Turns the location map on or off. Only change the four numbers if you replace web/dist/map.jpg |
Config.Context | How far from the reporter (nearbyRadius) nearby players are picked up, and how many (maxNearby) |
Players
| Setting | What it does |
|---|---|
Config.Reminders.pendingReports | Tells players who join that they still have open reports |
Config.Transparency | Show the queue position, the expected wait and how many staff are online |
Config.Warns | When warnings expire, when staff are told about repeat offenders, pop-ups and disputes |
Config.Bans | Block banned players on connect, allow appeals, and an appealUrl shown on the ban screen |
Anti-abuse
Config.AntiAbuse = {
enabled = true,
staffBypass = true,
cooldownSec = 120, -- between two reports
maxPerDay = 6,
maxOpen = 3,
maxSamePlayerPerHour = 2,
duplicateWindowMin = 15,
minDescription = 10,
strikeLimit = 3, -- false reports before the player is blocked
blockDays = 7,
}
Retention
Config.Retention deletes old data. closedReportDays and staffChatDays are in days; 0 keeps everything forever.
Report topics
Config.Categories lists the report topics, each with an id, label, icon, colour, default priority and form fields. Field types are text, textarea, select (with options), player and number.
The topics in config.lua are only used the first time the script starts. After that, edit them in the Categories page of the staff panel.
UI defaults and quick replies
Config.DefaultPlayerSettings and Config.DefaultStaffSettings set the starting accent colour, theme, sounds and so on. Each person can change them in the panel. Config.SeedQuickReplies are the quick replies staff start with.
config_server.lua
| Section | What it holds |
|---|---|
Config.Discord | A simple webhook, a transcript webhook for closed reports, and the bot for two-way sync (see Discord Setup) |
Config.Screenshot | Screenshot quality and the automatic screenshot when a report is filed |
Config.Evidence | Where screenshots and uploaded images are stored (see Installation) |