π£ Fishing β
Documentation relating to the kd_peche.
1. Installation β
kd_peche 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 resource in your resources folder
- kd_peche
- Add this ensure in your server.cfg
ensure kd_peche
- Congratulation, the Fishing script is ready to be use !
2. Usage β
Start fishing with the client event. 3 level are availables by default
- 1 - Easy level : Easy to catch fish but less expensive
- 2 - Medium level : Hard to catch but better loot
- 3 - Hard level : Very hard to catch but exclusive loot
lua
TriggerEvent('fish', <level> )You can add custom level in the config file.
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...