RX Scripts Logo
Hunting

Logs

All logs included within this script. Logs are sent to the configured Discord webhook URL by default, but can be customized to send to other services.
Configure your Discord webhook URL in 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
string

Player name and server ID.

Item Bought

Sent when a player buys an item from the hunting shop.

Player
string

Player name and server ID.

Item
string

Name of the purchased item.

Amount
string

Quantity purchased.

Cost
string

Total cost paid.

Item Sold

Sent when a player sells an item at the hunting shop.

Player
string

Player name and server ID.

Item
string

Name of the sold item.

Amount
string

Quantity sold.

Total
string

Total price received.

Animal Cut

Sent when a player cuts an animal.

Player
string

Player name and server ID.

Animal
string

Name of the animal that was cut.

Weapon
string

Weapon used to cut the animal.

Loot
string

Items received from cutting.

Animal Killed

Sent when a player kills an animal.

Player
string

Player name and server ID.

Animal
string

Name of the animal that was killed.

Zone
string

Hunting zone where the kill occurred.

Level Up

Sent when a player reaches a new hunter level.

Player
string

Player name.

New Level
string

The new level achieved.

Total XP
string

Total XP accumulated.

Mission Claimed

Sent when a player claims mission rewards.

Player
string

Player name and server ID.

Mission
string

Name of the completed mission.

XP Reward
string

XP reward amount.

Money Reward
string

Money reward amount.

Bait Placed

Sent when a player places a bait.

Player
string

Player name and server ID.

Bait
string

Type of bait placed.

Coords
string

Coordinates where the bait was placed.

Vehicle Rented

Sent when a player rents a hunting vehicle.

Player
string

Player name and server ID.

Rental Name
string

Name of the rental location.

Vehicle
string

Vehicle model rented.

Total Cost
string

Total cost paid (rental + deposit).

Vehicle Returned

Sent when a player returns a rented vehicle.

Player
string

Player name and server ID.

Rental Name
string

Name of the rental location.

Vehicle
string

Vehicle model returned.

Deposit Returned
string

Amount of deposit returned.