RX Scripts Logo
Lumberjack

Exports

All client- & serversided exports included within this script. Exports provide callable functions that allow other resources to interact with this script's functionality.
If additional exports are required for your implementation, please submit a formal request through our ticketing system on the official Discord server.

Server Exports

GiveLumberjackLicense

Gives a lumberjack license to a player.

exports['RxLumberjack']:GiveLumberjackLicense(playerId)
playerId
number required

Source of the player that should receive the lumberjack license.

RemoveLumberjackLicense

Removes a lumberjack license from a player.

exports['RxLumberjack']:RemoveLumberjackLicense(playerId)
playerId
number required

Source of the player where the lumberjack license should be removed.

AddLumberjackXP

Adds XP to a lumberjack.

exports['RxLumberjack']:AddLumberjackXP(playerId, xp)
playerId
number required

Source of the player that should receive XP.

xp
number required

Amount of XP to add to the lumberjack.

GetLumberjackLevel

Gets the current level of a lumberjack.

exports['RxLumberjack']:GetLumberjackLevel(playerId)
playerId
number required

Source of the player to get the level from.

GetLumberjackXP

Gets the current XP of a lumberjack.

exports['RxLumberjack']:GetLumberjackXP(playerId)
playerId
number required

Source of the player to get the XP from.

GetLumberjackData

Gets the complete lumberjack data object for a player.

exports['RxLumberjack']:GetLumberjackData(playerId)
playerId
number required

Source of the player to get the data from.

GetTrailerLogCount

Gets the number of logs on a trailer.

exports['RxLumberjack']:GetTrailerLogCount(trailerNetId)
trailerNetId
number required

Network ID of the trailer to check.

GetTrailerLogs

Gets detailed log data from a trailer.

exports['RxLumberjack']:GetTrailerLogs(trailerNetId)
trailerNetId
number required

Network ID of the trailer to get logs from.

Client Exports

IsPlayerWearingOutfit

Returns whether the player is currently wearing the lumberjack outfit.

exports['RxLumberjack']:IsPlayerWearingOutfit()

IsPlayerInLumberjackZone

Returns whether the player is in a lumberjack zone and the zone name.

exports['RxLumberjack']:IsPlayerInLumberjackZone()

IsPlayerUsingSawmill

Returns whether the player is currently using a sawmill.

exports['RxLumberjack']:IsPlayerUsingSawmill()

IsInDeliveryZone

Returns whether the player is in a delivery zone.

exports['RxLumberjack']:IsInDeliveryZone()

GetCurrentDeliveryZone

Returns the current delivery zone the player is in.

exports['RxLumberjack']:GetCurrentDeliveryZone()