Duel Gun β
Documentation relating to the kd_gun_duel.
1. Installation β
kd_gun_duel works with VORPcore and RedEM:RP. Be sure you installed one of this two frameworks.
- Drag and drop this 2 resources in your resources folder
- InteractSound
- kd_gun_duel
- Add this 2 ensures in your server.cfg
ensure InteractSoundensure kd_gun_duel
- Congratulation, the Duel gun script is ready to be use !
2. Usage β
Two types of duel are available on the script. Both work the same way but the execution is a bit different.
- First type
Use the command /duel [ID] to challenge another player (ID is the server ID of the other player). He will have 10s (can be edited) to answer at this request.
If he accepts, both player have to nearby and stand back to back. Next, they have to walk until the rang of the bells. At this moment, the first player who hit his opponent wins the duel !
- Second type
Use the command /duel2 [ID] to challenge player with this second scenario. In this scenario, both players have to move away from other. When they are far enough, the duel will start with a little cinematic. After a random duration, the bells will ring. The first guy who hit his opponent wins the duel !
3. Configuration β
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.