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

  1. Download the latest release of Guardian Server Logs from the store or your GitHub repository.

  2. Extract the contents to a folder named GaurdianServerLogs.

πŸ”§ Step 2 – Add to Your Server

  1. Move the GaurdianServerLogs folder into your server's resources directory.

  2. Open your server.cfg file.

  3. Add the following line to ensure the resource starts with your server:

ensure GaurdianServerLogs

βš™οΈ Step 3 – Configure

  1. Open the config.lua file in the resource folder.

  2. 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"
}
  1. Enable or disable events as needed:

  1. 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