Guardian Server Logs - Installation
Installing Guardian Server Logs is quick and easy. Follow the steps below to get it up and running on your FiveM server.
π¦ Step 1 β Download
Download the latest release of Guardian Server Logs from the store or your GitHub repository.
Extract the contents to a folder named
GaurdianServerLogs.
π§ Step 2 β Add to Your Server
Move the
GaurdianServerLogsfolder into your server'sresourcesdirectory.Open your
server.cfgfile.Add the following line to ensure the resource starts with your server:
ensure GaurdianServerLogsβοΈ Step 3 β Configure
Open the
config.luafile in the resource folder.Configure your Discord webhooks for each event:
Config.Webhooks = {
PlayerConnected = "YOUR_WEBHOOK_URL",
PlayerDisconnected = "YOUR_WEBHOOK_URL",
PlayerKilled = "YOUR_WEBHOOK_URL",
PlayerKicked = "YOUR_WEBHOOK_URL",
PlayerBanned = "YOUR_WEBHOOK_URL",
ResourceStarted = "YOUR_WEBHOOK_URL",
ResourceStopped = "YOUR_WEBHOOK_URL",
ResourceRestarted = "YOUR_WEBHOOK_URL"
}Enable or disable events as needed:
Set optional logging settings:
β
Step 4 β Start Your Server
Restart your server.
All enabled events will now log automatically to your Discord webhooks.
Last updated