Logs
server/opensource.lua by setting the Config.DiscordWebhook variable.Configuration
To enable Discord logging, set your webhook URL in the server opensource file:
Config.DiscordWebhook = 'https://discord.com/api/webhooks/...'
Set to an empty string '' to disable logging.
Customizing Logs
You can customize the logging function in server/opensource.lua to send logs to different services or modify the format:
---@param title string The title of the log message
---@param fields table Array of {name: string, value: string, inline?: boolean}
---@param color? number The embed color (optional, defaults to 10027059)
function Log(title, fields, color)
ToDiscord(title, fields, color)
end
Replace ToDiscord with your own logging implementation to integrate with other services.
Available Logs
License Bought
Sent when a player purchases a hunting license.
Player name and server ID.
Item Bought
Sent when a player buys an item from the hunting shop.
Player name and server ID.
Name of the purchased item.
Quantity purchased.
Total cost paid.
Item Sold
Sent when a player sells an item at the hunting shop.
Player name and server ID.
Name of the sold item.
Quantity sold.
Total price received.
Animal Cut
Sent when a player cuts an animal.
Player name and server ID.
Name of the animal that was cut.
Weapon used to cut the animal.
Items received from cutting.
Animal Killed
Sent when a player kills an animal.
Player name and server ID.
Name of the animal that was killed.
Hunting zone where the kill occurred.
Level Up
Sent when a player reaches a new hunter level.
Player name.
The new level achieved.
Total XP accumulated.
Mission Claimed
Sent when a player claims mission rewards.
Player name and server ID.
Name of the completed mission.
XP reward amount.
Money reward amount.
Bait Placed
Sent when a player places a bait.
Player name and server ID.
Type of bait placed.
Coordinates where the bait was placed.
Vehicle Rented
Sent when a player rents a hunting vehicle.
Player name and server ID.
Name of the rental location.
Vehicle model rented.
Total cost paid (rental + deposit).
Vehicle Returned
Sent when a player returns a rented vehicle.
Player name and server ID.
Name of the rental location.
Vehicle model returned.
Amount of deposit returned.
