Events
Server Events
lumberjack:onLicenseBought
Triggered after a lumberjack license has been bought successfully.
RegisterNetEvent('lumberjack:onLicenseBought', function(playerId) end)
Source of the player that bought the lumberjack license.
lumberjack:onItemBought
Triggered after a player buys an item from the lumberjack shop.
RegisterNetEvent('lumberjack:onItemBought', function(playerId, itemData, amount, price) end)
Source of the player that bought the item.
The item data from config including item, label, price, requiredLevel, and mystery.
The amount of items bought.
The price per item.
lumberjack:onItemSold
Triggered after a player sells an item at the lumberjack shop.
RegisterNetEvent('lumberjack:onItemSold', function(playerId, itemData, amount, totalPrice) end)
Source of the player that sold the item.
The item data from config including item, label, price, requiredLevel, and mystery.
The amount of items sold.
The total price received (price * amount).
lumberjack:onMissionClaimed
Triggered after a player claims mission rewards.
RegisterNetEvent('lumberjack:onMissionClaimed', function(playerId, missionKey, rewards) end)
Source of the player that claimed the mission.
The mission key/identifier.
The rewards given including xp, money, moneyType, and items array.
lumberjack:onVehicleRented
Triggered after a player rents a vehicle.
RegisterNetEvent('lumberjack:onVehicleRented', function(playerId, rentalName, vehicleData) end)
Source of the player that rented the vehicle.
The name of the vehicle rental location.
The vehicle data from config including model, label, rentInterval, intervalPrice, deposit, requiredLevel, and mystery.
lumberjack:onVehicleReturned
Triggered after a player returns a rented vehicle.
RegisterNetEvent('lumberjack:onVehicleReturned', function(playerId, rentalName, vehicleData) end)
Source of the player that returned the vehicle.
The name of the vehicle rental location.
The vehicle data from config including model, label, rentInterval, intervalPrice, deposit, requiredLevel, and mystery.
lumberjack:onTreeChopped
Triggered after a player chops down a tree.
RegisterNetEvent('lumberjack:onTreeChopped', function(playerId, treeName, lumberjack) end)
Source of the player that chopped the tree.
Name of the tree that has been chopped.
Data of the lumberjack that chopped the tree.
lumberjack:onLogCut
Triggered after a log has been cut.
RegisterNetEvent('lumberjack:onLogCut', function(playerId, logName, lumberjack) end)
Source of the player that cut the log.
The name/type of the log cut.
Data of the lumberjack that cut the log.
lumberjack:onLogSawn
Triggered after logs have been sawn at a sawmill.
RegisterNetEvent('lumberjack:onLogSawn', function(playerId, logItem, amount, lumberjack) end)
Source of the player that sawed the logs.
The item name of the log sawn (e.g., 'pine_log').
The amount of logs sawn.
Data of the lumberjack that sawed the logs.
lumberjack:onXpGained
Triggered after a player gains XP.
RegisterNetEvent('lumberjack:onXpGained', function(playerId, xpGained, newXP, lumberjack) end)
Source of the player that gained XP.
The amount of XP gained.
The new total XP.
Data of the lumberjack that gained XP.
lumberjack:onLevelUp
Triggered after a player levels up.
RegisterNetEvent('lumberjack:onLevelUp', function(playerId, newLevel, lumberjack) end)
Source of the player that leveled up.
The new level reached.
Data of the lumberjack that leveled up.
lumberjack:onDeliveryCompleted
Triggered after a player completes a log delivery.
RegisterNetEvent('lumberjack:onDeliveryCompleted', function(playerId, locationLabel, logsSold, totalPayment, totalLogs, lumberjack) end)
Source of the player that completed the delivery.
The name of the delivery location.
Table of tree types and counts sold.
Total money received from the delivery.
Total number of logs delivered.
Data of the lumberjack that completed the delivery.
Client Events
No client-sided events available at this time.
