βοΈ 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_miningensure kd_custom-nativeensure kd_hud-eventensure 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 β
- Open
/overwriteConfig.lua - Find the value you want to change in
config.lua(e.g.,Config.language) - Copy only that line into
overwriteConfig.lua - 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...