Webhooks
Information regarding setting up the resources webhook config.
A brief introduction to configuring your webhook settings.
In this section
Create a webhook
If you want discord logs for sever events, joins/leaves, and chat notifications follow these steps.
Create a Discord Channel
Create a new discord channel and name it System Logs
, FiveM Logs
or honestly whatever you prefer, the name doesn't matter!
Create a channel integration
Go to your channels settings and select the Integrations
tab and then Webhooks
Create a new webhook
In the webhooks section click on Create Webhook
and set your Webhook/Bots name and avatar/picture
Copy your webhook
Click the Copy Webhook URL
button and make sure you save it somewhere, we are gonna need it
in the next section of this webhook guide.
Save the webhook
Click on the big green save
button and move onto Add your webhooks
Add your webhooks
If you want System Infos, Killing Logs and Chat in three separate channels, replace the webhooks links
I have in lines 1
, 2
& 3
with the webhooks link for each individual channel.
Otherwise, create just one Webhook and replace these 3 lines with that webhook
Create a webhook
If you haven't done so already head over to the Create a webhook.
Paste your webhook url(s)
Open the server/s_config.lua
file using visual studio code
, note pad
or whatever you prefer
and add your webhook(s) to their respective lines (see example config below).
If you do not want to use any of these logs simply leave their values empty.
Save and profit
When you have edited the config to your liking you can save and close it.