โ๏ธ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:
Upload the content of html to your webspace/server
Edit
index.htmlby changing./to only/in the filepaths (otherwise page reload will fail)Edit
assets/externalHosting.jsto fit your requirements (in most cases adjusting the host variable is sufficient - host: "https://backend.unlimited.wtf")
Last updated
Was this helpful?