Events
Server Events
mining:onLicenseBought
Triggered after a mining license has been bought successfully.
RegisterNetEvent('mining:onLicenseBought', function(playerId) end)
Source of the player that bought the mining license.
mining:onOreMined
Triggered after a player hit a ore.
RegisterNetEvent('mining:onOreMined', function(playerId, oreName, miner) end)
Source of the player that start mining.
Name of the ore that has been hit.
Data of the miner that hit the ore.
mining:onItemBought
Triggered after a player buys an item from the mining shop.
RegisterNetEvent('mining:onItemBought', function(playerId, itemData, amount, price) end)
Source of the player that bought the item.
Item data from config.
Amount of items bought.
Price per item.
mining:onItemSold
Triggered after a player sells an item at the mining shop.
RegisterNetEvent('mining:onItemSold', function(playerId, itemData, amount, totalPrice) end)
Source of the player that sold the item.
Item data from config.
Amount of items sold.
Total price received (price * amount).
mining:onMissionClaimed
Triggered after a player claims mission rewards.
RegisterNetEvent('mining:onMissionClaimed', function(playerId, missionKey, rewards) end)
Source of the player that claimed the mission.
Mission key/identifier.
Rewards given to the player.
mining:onVehicleRented
Triggered after a player rents a vehicle.
RegisterNetEvent('mining:onVehicleRented', function(playerId, rentalName, vehicleData) end)
Source of the player that rented the vehicle.
Name of the vehicle rental location.
Vehicle data from config.
mining:onVehicleReturned
Triggered after a player returns a rented vehicle.
RegisterNetEvent('mining:onVehicleReturned', function(playerId, rentalName, vehicleData) end)
Source of the player that returned the vehicle.
Name of the vehicle rental location.
Vehicle data from config.
mining:onXpGained
Triggered after a player gains XP.
RegisterNetEvent('mining:onXpGained', function(playerId, xpGained, newXP, miner) end)
Source of the player that gained XP.
Amount of XP gained.
New total XP.
Miner object.
mining:onLevelUp
Triggered after a player levels up.
RegisterNetEvent('mining:onLevelUp', function(playerId, newLevel, miner) end)
Source of the player that leveled up.
New level reached.
Miner object.
Client Events
No client-sided events available at this time.
