RX Scripts Logo
Mining

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

GiveMiningLicense

Gives a mining license to a player.

exports['RxMining']:GiveMiningLicense(playerId)
playerId
number required

Source of the player that should receive the mining license.

RemoveMiningLicense

Removes a mining license from a player.

exports['RxMining']:RemoveMiningLicense(playerId)
playerId
number required

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

AddMinerXP

Adds XP to a miner.

exports['RxMining']:AddMinerXP(playerId, xp)
playerId
number required

Source of the player that should receive the XP.

xp
number required

Amount of XP to add.

GetMinerLevel

Gets the current level of a miner.

exports['RxMining']:GetMinerLevel(playerId)
playerId
number required

Source of the player to get the level from.

GetMinerXP

Gets the current XP of a miner.

exports['RxMining']:GetMinerXP(playerId)
playerId
number required

Source of the player to get the XP from.

Client Exports

No client-sided exports available at this time.