Skip to main content

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:

server.cfg
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):

server.cfg
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.lua
Config.PlayerCommand = 'greport'
Config.StaffCommand = 'greports'
warning

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.

  1. Start screencapture (or screenshot-basic) before gs-report.
  2. In config_server.lua, set Config.Evidence.provider to where the images should go:
ProviderWhat to fill in
fivemanageYour fivemanage.com API key in fivemanageKey
imgbbYour imgbb.com key in imgbbKey (the links are public)
discordThe webhook of a private channel in discordWebhook. Discord links expire after a while, so use this for testing only
customYour own upload server in customUrl. It receives { image, dataUrl } and must return { url }
disabledNo screenshots
  1. Config.Screenshot.onSubmit decides who gets captured: none, reporter, reported or both. default applies to every topic, and categories changes it per topic. With playerCanSkip = 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.