Vehicle WINCH β
Documentation relating to the kd_winch.
1. Installation β
Vehicle WINCH 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 this 4 resources in your resources folder
- InteractSound
- kd_custom-native
- kd_hud-event
- kd_winch
- Add this 4 ensures in your server.cfg
ensure InteractSoundensure kd_custom-nativeensure kd_hud-eventensure kd_winch
- Congratulation, the Vehicle WINCH script is ready to be use !
2. Usage β
By default, the script is configured to work with the Dune Loader: dloader. Use your admin menu (or other scripts) to spawn it.
A help message with key will appears at the top left of your screen every time action is available. Please read them to know what keys are usable.
- Go to the front of the dune loader to take the winch.
- Go to near other car to attach it.
- Back to the front of the dune loader or inside to roll up/down the winch
- If you need to detach the winch, go back to the front of vehicle and take the winch. You can store it by go back to the front of the dune loader
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.
4. For developer β
You can turn off the script for a specific player by using this client event
TriggerClientEvent('kd_winch:CanUse', source, false)You can turn on the script again with the same client event
TriggerClientEvent('kd_winch:CanUse', source, true)