This script prevents players from bunny hopping or running while jumping in a FiveM server. It is designed to be standalone and highly customizable.
- Prevents bunny hopping by enforcing a cooldown between jumps.
- Prevents running while jumping by setting the player to ragdoll state if they exceed a certain speed threshold.
- Easily configurable via
config.lua.
-
Download the script:
- Clone this repository or download the ZIP file and extract it.
-
Place the script in your resources folder:
- Move the extracted folder to your
resourcesdirectory in your FiveM server.
- Move the extracted folder to your
-
Add the script to your server configuration:
- Open your
server.cfgfile and add the following line:Replaceensure b2_antiBunnyHopb2_antiBunnyHopwith the name of the folder you placed in theresourcesdirectory.
- Open your
-
Start your server:
- Restart your FiveM server or start it if it was not running.
The script is highly customizable via the config.lua file. Below are the available configuration options:
- AntiBunnyHopEnabled: Enable or disable the anti-bunny hop feature.
Config.AntiBunnyHopEnabled = true