Send logs from Discord webhook scripts

Scripts that post logs to a Discord webhook send them to fxvault Logs when you paste an fxvault webhook URL where the Discord one was.

Media Storage1 min read

On this page
  1. Which scripts switch
  2. JD_logsV3 needs three more changes

Scripts that post logs to a Discord webhook switch when you paste an fxvault webhook URL where the Discord URL was.

Create one webhook URL per dataset on the API keys tab. It is shown once, so copy it then. It looks like https://logs.fxvault.link/api/webhooks/ followed by an id and a secret. The secret is the whole key: anyone who has the URL can send logs to that dataset, so keep it out of anything players receive, and revoke it if it leaks. Add ?dataset=name to the end of the URL to send to another dataset than the URL's own.

Which scripts switch

  • qb-smallresources, qbx_core, es_extended and JD_logsV3 switch.
  • sky_phone checks the address of its webhook and cannot switch.
  • On a qbx server, switch through ox_lib instead: qbx_core's webhook logger waits 60 seconds after every fifth post.

Paste the whole URL into the script's webhook setting.

YOUR_WEBHOOK_URL

JD_logsV3 needs three more changes

In configs/config.json:

JSON
"allLogs": false,
"TimezoneOffset": "+01:00",

Set TimezoneOffset to your host's own offset from UTC, such as +01:00 or -05:00. JD_logsV3 stamps each embed with the host's local time plus that offset, and a wrong offset stores rows hours early.

In configs/channels.json, paste the URL as the channelId of each channel you want sent here, never in the all channel:

JSON
"channelId": "YOUR_WEBHOOK_URL",

JD_logsV3 writes Discord ids as mentions, so its rows are not found by a discord: search. Its steam, license and license2 ids are found.

Source: qb-smallresources, qbx_core, es_extended, JD_logsV3 and sky_phone.

Need a server, or a hand with one?

Pick a plan to deploy a server, or open a ticket in the panel. Support runs 24/7/365.