โš™๏ธConfiguration

Spectre can be configured via the provided config.json or by setting convars (unless otherwise stated). Convars takes precedence over the config.json.

Config

// config.json

{
  "port": "3000",
  "unlDisableServe": "false",
  "unlMySQLSessions": "false",

  "QBName": "qb-core",
  "QBObject": "QBCore",
  "QBShared": "QBShared",
  
  "vehGarageColumn": "garage",
  "vehStateColumn": "state",
  "vehTables": [
    {
      "table": "trunkitems",
      "column": "plate"
    },
    {
      "table": "gloveboxitems",
      "column": "plate"
    }
  ],

  "additionalMoneyTypes": {},

  "usedInventory": "qb-inventory",
  "maxPlayerSlots": "41",

  "disableWeaponLogs": "false",
  "excludeWeaponLogsFromDiscord": "false",
  "unlDiscordHook": "false",
  "unlGameDiscordHook": "false",
  "unlPlayerDiscordHook": "false",
  "unlDevDiscordHook": "false",
  "unlWebDiscordHook": "false",

  "dashboardInterval": "5000",
  "mapInterval": "1250"
  
  "vehGarageColumn": "garage",
  "vehStateColumn": "state",
  
  "customHandleDeadEvent": "false",
  "customHandleCuffedEvent": "false"
}

Convars

*folder structure and resource structure must follow the qb-inventory convention

External frontend

Spectre offers the option to host the frontend externally.

This requires sharing the same domain on frontend and backend.

Just a few steps are needed:

  1. Upload the content of html to your webspace/server

  2. Edit index.html by changing ./ to only / in the filepaths (otherwise page reload will fail)

  3. Edit assets/externalHosting.js to fit your requirements (in most cases adjusting the host variable is sufficient - host: "https://backend.unlimited.wtf")

If you host your frontend externally, its recommended to disable serving your frontend via gamerserver by setting config/convar unlDisableServe to true

Last updated

Was this helpful?