Skip to main content

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

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​

SettingDefaultWhat 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.AutoMigratetrueCreates 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.BrandThe name and tags shown in the panel

Staff​

config.lua
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.Tags is a list of suggested tags.
  • Config.NotifyPlayer is the function used to notify players. Swap it if you use another notify script.

Player panel​

SettingWhat it does
Config.InventoryWhich inventory staff see items from: auto, ox, qb, qs, esx, custom or none
Config.CustomDataExtra rows, for example { label = 'Phone', get = function(src, identifier) return '555-0100' end }
Config.PlaytimeHours 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.MapTurns the location map on or off. Only change the four numbers if you replace web/dist/map.jpg
Config.ContextHow far from the reporter (nearbyRadius) nearby players are picked up, and how many (maxNearby)

Players​

SettingWhat it does
Config.Reminders.pendingReportsTells players who join that they still have open reports
Config.TransparencyShow the queue position, the expected wait and how many staff are online
Config.WarnsWhen warnings expire, when staff are told about repeat offenders, pop-ups and disputes
Config.BansBlock banned players on connect, allow appeals, and an appealUrl shown on the ban screen

Anti-abuse​

config.lua
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.

info

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​

SectionWhat it holds
Config.DiscordA simple webhook, a transcript webhook for closed reports, and the bot for two-way sync (see Discord Setup)
Config.ScreenshotScreenshot quality and the automatic screenshot when a report is filed
Config.EvidenceWhere screenshots and uploaded images are stored (see Installation)