Home / Documentation / Sal's Kewl Report
Sal's Kewl Report — owner's manual
Players report a problem from inside the game in one line, with a screenshot and where they stood attached for them. Your staff work every report in game: go there, recreate the call, copy it for the developer. This manual covers installation, Discord, every in-game setting and privacy, for server owners.
Overview
Let your players report problems from inside the game, and let your staff work those reports in game: stand where it happened, start the same call again, and pass it to whoever made the script.
Features
For players: never a chore
/report the cot vanished after loading the patientsends a report straight away. No form: the screenshot, the script, the place, the job and the call are all filled in for them./reporton its own (or a key each player picks) opens a short form where the only thing they have to write is what happened. The cursor is already in that box; Ctrl+Enter sends.- The kind of problem is one tap, with a default already picked.
- The script is guessed ("About: Public Safety Simulator (our guess)") with a small change link; "not sure" is a fine answer, staff work it out.
- The screenshot is already attached, taken the moment they pressed the key, before the form covered the screen. One tick removes it.
- Your own questions: required ones are shown, optional ones are folded under "More details (optional)". Quick reports skip them.
- Close it by accident and what they typed is still there next time.
Sent automatically: where they stood (street, coordinates, facing), the vehicle they were in, their character and job, the version of every Sal's Kewl script running, and the exact Public Safety Simulator call they were on.
For your staff: /reports
- Every report in a history that survives restarts, screenshots included. Filter by status and script, search, newest first.
- Status (new, looking into it, sent to the developer, sent to Sal's Kewl Korner, fixed, not a bug, duplicate, closed) and staff notes. Every action is recorded on the report: who went there, who recreated it, who sent it.
- Go there: teleports you to exactly where the player stood, facing the same way.
- Recreate the call: for a Public Safety Simulator call, starts the same call again at the same place, so you can watch the problem happen.
- Copy for the developer: a clean write-up (the script and its version, what the player said, what the scripts said, the other scripts running, your notes, no player licenses) to paste wherever that script's developer takes reports.
- Send to Sal's Kewl Korner: on reports about Sal's Kewl scripts only. Nothing is ever sent to us on its own; your staff press the button and choose whether the screenshot and the player's name go along, and can add a note.
- Send to Fusion Platform Technologies: the same, on reports about Fusion Platform Technologies' scripts, straight to their report channel.
- Staff online are told when a new report comes in.
Your Discord: paste one webhook in game and a test post confirms it works.
One post per report with the screenshot inside it. Point the webhook at a
forum channel and every report becomes its own post (the script notices by
itself); status changes and staff notes from /reports are posted under it. Ping a role per
report type; exploit reports can go to a separate private channel. Discord is
optional: without a webhook, reports go to /reports only.
Set up in game: /reports > Settings changes everything (commands,
report types, your questions, Discord, limits) with plain explanations, and
the change reaches players online at once.
Safe: webhooks never leave the server, not even to the Settings page; nothing a player types can ping
@everyone, fake a link or put markup into the staff panel; every field and
every staff action is checked on the server; per-player cooldown and hourly limit.
Requirements
- FiveM server (any framework: qb-core, qbx_core, ESX or none).
- Optional: screenshot-basic for screenshots.
- Optional: Sal's Kewl Public Safety Simulator, for call details and "Recreate the call".
Installation
- Put the
sals_kewlreportfolder in yourresourcesfolder. Keep itsdata/folder; the history is written there. - In
server.cfg, afterscreenshot-basicif you use it:
ensure screenshot-basic
ensure sals_kewlreport
add_ace group.admin sals_kewlreport.admin allow # work reports in /reports
add_ace group.admin sals_kewlreport.settings allow # change settings in /reports > Settings
The two permissions are separate on purpose: the people who work reports
do not need to see or change your webhooks.
3. Restart the server. The console shows:
[sals_kewlreport] ready: /report for players, /reports for staff, 0 reports in history, Discord not set up (optional: paste a webhook in /reports > Settings > Discord), screenshots on
That is the whole install: /report and /reports work now. Nothing in
config.lua has to be edited.
4. Discord (optional, two minutes). It needs one thing, a webhook. No bot,
no token, no IDs.
1. In Discord, right-click the channel reports should go to: Edit
Channel > Integrations > Webhooks > New Webhook > Copy Webhook URL.
2. In game, type /reports, open Settings > Discord, paste it and
press Save changes.
A test post appears in the channel right away. If it does not, the panel
says why in plain words (for example, the webhook was deleted). A normal
channel or a forum channel both work, and you do not have to say which. A
second, private webhook can take exploit reports. Send a test post
beside a saved webhook tries it again at any time.
5. Already have a /report (or a /reports)? Rename ours under
Settings > Commands. It takes effect at once for everybody online,
survives updates of this script, and never resets a player's key binding.
A few seconds after a rename the panel (and the server console) names any
other script that uses the same command.
"You do not have permission to open /reports"? The two add_ace lines are
missing from server.cfg, or your account is not in group.admin. The server
console prints the exact lines to add the first time somebody is turned away.
Configuration
Everything is in game: /reports > Settings, for whoever has
sals_kewlreport.settings. Every setting has a plain-language explanation and
a Use the default button; a change reaches players already online without a
restart (only the default key needs one). One bad value saves nothing, and the
panel says which and why. Changes are kept in data/settings.json, on the
server, and win over config.lua, so an update of this script never undoes them.
| Page | What it changes |
|---|---|
| Commands | The players' command (or none), more names for it, the staff command, quick reports, the default key |
| Reporting | The problem type picked first, shortest description, cooldown, reports per hour, who may report |
| Report types | The buttons players tap: label, color, a Discord role to ping, private |
| Your questions | Extra questions: text, long text, drop-down, checkbox or number; required or folded away; for some types only |
| Script list | List every script or only Sal's Kewl ones; hide some; friendly names |
| Screenshots | On/off, quality, size limit |
| Discord | Webhook (with a test post), private webhook, follow-ups, the posts' name, player IDs |
| Staff and history | New-report alerts, how many reports to keep, screenshot storage, the "Send to Sal's Kewl Korner" and "Send to Fusion Platform Technologies" buttons |
| General | Language, debug messages |
config.lua holds the same settings, commented, as the starting point. Who
may change settings (Config.Admin.SettingsAce) is only in config.lua, so
nobody can lock themselves out in game.
Your webhooks stay on the server
A webhook address lets anybody who has it post in your channel, so this script never lets one reach a player's game:
- There is no webhook setting in
config.lua. That file is a shared script: FiveM sends it to every player who joins. - A webhook saved in game lives in
data/settings.json, which is not in the manifest'sfiles, so FiveM never sends it to anybody. Settings players do receive (a renamed command, new report types) go out with the webhooks taken out, and a player's game refuses to apply a webhook even if handed one. - The Settings page shows a saved webhook as
********. Its box stays empty; typing a new address replaces it, Remove clears it, leaving it alone keeps it. - If you prefer
server.cfg, useset, neversetr(setrsends the value to every player):set sals_kewlreport_webhook "https://discord.com/api/webhooks/..."andset sals_kewlreport_private_webhook "...". One saved in game is used first.
Command names may also come from server.cfg
(setr sals_kewlreport_command "bug", sals_kewlreport_command_aliases
"ticket,issue", sals_kewlreport_staff_command "tickets"; "off" for no
player command). A name saved in game wins over them.
Adding questions
Easiest in game: Settings > Your questions > + Add. Or in config.lua:
Config.Fields = {
{ id = 'steps', label = 'How can we make it happen again?', type = 'textarea', max = 600 },
{ id = 'often', label = 'How often does it happen?', type = 'select', required = true,
options = { 'Every time', 'Sometimes', 'Only once' } },
{ id = 'clip', label = 'Clip link', type = 'text', max = 200, only = { 'bug', 'crash' } },
}
For script developers
Any script can plug in, ours or anyone else's: tell reports what a player is
doing in your script and where (exports.sals_kewlreport:SetContext), let
staff recreate it (ReportReplay), and open the form from your own menu
(exports.sals_kewlreport:Open). Your script is then picked on the form
automatically, and staff get Go to the scene and Recreate buttons for it.
See the developer guide for the guide and examples.
Privacy
Reports keep the player's name, server ID, license and Discord account for your
staff (Config.Discord.ShowPlayerIds = false keeps the IDs out of Discord).
"Copy for the developer" never includes licenses or Discord IDs. "Send to Sal's
Kewl Korner" and "Send to Fusion Platform Technologies" never include licenses
or server IDs, and include the player's name and Discord account only when your
staff tick that box.
Didn’t find it? Ask Squawky, or open a ticket on Discord and tell us what you already tried.