Installation
1. Add the resource
Put the gs-report folder in your resources folder. Keep the folder name. Start it after oxmysql, your framework and any optional scripts:
ensure oxmysql
ensure qbx_core # or qb-core / es_extended
ensure screencapture # optional, for screenshots
ensure illenium-appearance # optional, for the clothing menu
ensure gs-report
2. Start the server
The database tables are created automatically on the first start (Config.AutoMigrate = true). If you'd rather create them yourself, import sql/schema.sql.
3. Give yourself staff access
If your admin group is already listed in Config.StaffGroups in config.lua, you're done. Otherwise, add this to server.cfg (it works on every framework):
add_ace group.admin gs-report.staff allow
add_principal identifier.license:YOUR_LICENSE group.admin
4. Test it
In-game, the player command opens the report form and the staff command opens the inbox. The command names are set in config.lua:
Config.PlayerCommand = 'greport'
Config.StaffCommand = 'greports'
After you update the script, change fxmanifest.lua or add files, run refresh in the server console before restart gs-report.
Screenshots (optional)
A screenshot can be attached automatically when a report is filed, and staff can take one from the report.
- Start
screencapture(orscreenshot-basic) before gs-report. - In
config_server.lua, setConfig.Evidence.providerto where the images should go:
| Provider | What to fill in |
|---|---|
fivemanage | Your fivemanage.com API key in fivemanageKey |
imgbb | Your imgbb.com key in imgbbKey (the links are public) |
discord | The webhook of a private channel in discordWebhook. Discord links expire after a while, so use this for testing only |
custom | Your own upload server in customUrl. It receives { image, dataUrl } and must return { url } |
disabled | No screenshots |
Config.Screenshot.onSubmitdecides who gets captured:none,reporter,reportedorboth.defaultapplies to every topic, andcategorieschanges it per topic. WithplayerCanSkip = true, players get a switch to turn it off.
Only the link to the image is saved in the database, never the image itself.
Clothing menu (optional)
On a report, staff press Clothing and the player's appearance menu opens on their screen. With Config.Clothing.provider = 'auto' it picks illenium-appearance, fivem-appearance, qb-clothing or esx_skin, whichever it finds. For anything else, set the provider to custom and give it a function.
Discord (optional)
See Discord Setup.