Installation
This section is for uploading images and screenshots from link, image or from ingame, you can find these in (shared/upload.lua). Here you need to insert either Fivemanage token or Discord webhook or Imgur Client ID or customize it yourself if you want the image uploading to work.
Upload = {}
Upload.FivemanageToken = "YOUR_FIVEMANAGE_TOKEN"
Upload.DiscordWebhookURL = "YOUR_DISCORD_WEBHOOK_URL"
Upload.ImgurClientID = "YOUR_IMGUR_CLIENT_ID"
Upload.screenshotQuality = 0.8 -- Use between 0.0 and 1.0
Upload.screenshotEncoding = 'png' -- Use 'jpg', 'png', or 'webp'
Upload.allowedImageEncoding = {'jpg', 'png', 'webp'}Configuration file (config.lua)
Config = {}
Config.Framework = 'qb-core'-- "qb-core", "esx", "qbx", "standalone" or customize yourself | OBS!! if you use standalone or qbx you have to use our lib (https://jl-store.tebex.io/package/6508787).
Config.Staffs = { 'god', 'admin' }
Config.Notify = 'okok' -- "qb", "esx", "okok", "qbx", "qs" or customize it yourself.
Config.Language = "en"
Config.FormatDate = "sv-SE" -- https://www.w3schools.com/jsref/jsref_tolocalestring.asp
Config.Clothing = "qb-clothing" --"qb-clothing", "esx_skin", "none" or customize it yourself just by changing the event in server/custom/custom.lua, if set to none the clothing menu button will disappear.
Config.Upload = "fivemanage" -- "fivemanage" or "discord" or "imgur" (we recommed fivemanage, change your token in shared/upload.lua)
Config.Command = "reports"
-- What actions you want to enable or disable, you can customize all of them.
Config.Buttons = {
Bring = true,
Kick = true,
Ban = true,
Teleport = true,
Clothing = true,
}
Config.Notifys = {
created = true, -- Notify all Staff when a report is created?
message = true, -- Notify all Staff when a report is sent in a report?
}
Config.ReportCategories = {
{ name = "Criminal" },
{ name = "Civilian" },
{ name = "Bug Report" },
}The database tables, insert these into your database.
The translation file (locales/translations/en.lua). Translate these to your language.
Last updated