Skip to content

⛏️ Mining job ​

Documentation relating to the kd_realistic_mining.

1. Installation ​

kd_realistic_mining is a standalone script. So you don't need a specific framework to use it. It's also mean it works with all framework (Esx, QBCore, VRP, DRP, …).

  • Drag and drop the 4 resources in your resources folder
    • kd_realistic_mining
    • kd_custom-native (for optimization)
    • kd_hud-event (for display information)
    • InteractSound (for the sound of hit)
  • Add this 4 ensures in your server.cfg
    • ensure kd_realistic_mining
    • ensure kd_custom-native
    • ensure kd_hud-event
    • ensure InteractSound
  • Congratulation, the Mining script is ready to be use !

2. Usage ​

Start the job with the client event

lua
TriggerEvent('StartMiningFarm')

Stop the job with the client event

lua
TriggerEvent('StopMiningFarm')

3. Config.lua ​

The configuration file is config.lua in the resource root. Do not edit this file directly as your changes may be lost during updates. Instead, use overwriteConfig.lua to store your customizations.

  • config.lua - Default configuration maintained by developers. Do not modify this file.
  • overwriteConfig.lua - This is where you place only the values you want to override.

How to customize the configuration ​

  1. Open /overwriteConfig.lua
  2. Find the value you want to change in config.lua (e.g., Config.language )
  3. Copy only that line into overwriteConfig.lua
  4. Edit the copied value to your liking

The script loads config.lua first, then overwriteConfig.lua overwrites only the values you redefine. This ensures your customizations are preserved when updating the script.

Loading configuration...

Last updated: