Standalone
Agency-Reports V2
Modern report/support system with in-game UI for players and admins, featuring live chat per report with persistent message history, status workflow (open > progress > closed), and admin utility actions (Goto, Bring, Heal). Supports ESX, QBCore, and Standalone with AI-powered chat replies via Groq, Discord webhooks, and 13 languages.

01 Configuration
Complete config.lua for Agency-Reports V2. All options documented via inline comments.
Config = {}
-- =========================================
-- Framework
-- =========================================
-- Options: 'auto', 'standalone', 'esx', 'qb'
Config.Framework = 'auto'
-- =========================================
-- Locale
-- =========================================
Config.Locale = {
Default = 'en',
Supported = { 'en', 'de', 'cs', 'esm', 'fr', 'it', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'tr' }
}
-- =========================================
-- Commands
-- =========================================
Config.Commands = {
Report = 'areport', -- Command for players to open the report UI
AdminUI = 'areports', -- Command for admins to open the admin UI
}
-- =========================================
-- Permissions
-- =========================================
Config.AdminGroups = {
['admin'] = true,
['superadmin'] = true,
['mod'] = true,
['god'] = true
}
-- =========================================
-- Report Categories
-- =========================================
Config.Categories = {
{ value = 'vdm', label = 'VDM' },
{ value = 'rdm', label = 'RDM' },
{ value = 'failrp', label = 'FailRP' },
{ value = 'support', label = 'General Support' },
{ value = 'bug', label = 'Bug Report' },
{ value = 'other', label = 'Other' }
}
-- =========================================
-- Notifications
-- =========================================
Config.Notifications = {
Duration = 8000, -- milliseconds
Type = 'info', -- info, success, error, warning
UseAgencyNotify = true, -- Use AgencyNotify for standalone notifications (https://agency-script.tebex.io/package/6937769)
PlaySound = true -- Play notification sound
}
-- =========================================
-- Logging / Debug
-- =========================================
Config.Logging = {
LogCommands = true -- Log command usage to server console
}
-- =========================================
-- Discord Webhook & Invite Button
-- =========================================
Config.Discord = {
Enabled = false,
Webhook = {
Url = '',
MentionRoleId = '', -- Optional: Role-ID for ping (without <@& >)
Username = 'Agency Reports',
AvatarUrl = ''
},
Invite = {
Enabled = true,
Link = 'https://discord.gg/Qddmx3CnMS'
}
}
-- =========================================
-- AI Assistant (Beta!) The bot can make mistakes and misunderstand context.
-- =========================================
Config.AI = {
Enabled = false,
Provider = 'groq', -- openrouter | groq (free)
ApiKey = 'your api here', -- Get your API key from https://openrouter.ai/
Endpoint = '',
Model = '',
Temperature = 0.4,
MaxTokens = 220,
SiteUrl = '', -- Optional: your server/site URL for OpenRouter analytics
SiteName = 'Agency Reports',
SystemPrompt = 'You generate concise FiveM report drafts. Return strict JSON only: {"title":"...","description":"..."}.'
}