Theme editor

Guide Disable Bunny Hopping Script

Random threads

Admin

FiveM Pro
Joined
Oct 11, 2024
Messages
155
Reaction score
-1,355
Points
93
Credits
0
Thread owner
Prevent bunny hopping on your FiveM server with our free script. Copy the code, paste it into your client.lua, and restart the script to force characters to fall after two or three jumps.

bunyhopping.webp
Code:
Citizen.CreateThread(function()

    while true do

        Citizen.Wait(100)

        local ped = PlayerPedId()

        if IsPedOnFoot(ped) and not IsPedSwimming(ped) and (IsPedRunning(ped) or IsPedSprinting(ped)) and not IsPedClimbing(ped) and IsPedJumping(ped) and not IsPedRagdoll(ped) then

            local chance_result = math.random()

            if chance_result < 0.50 then

                Citizen.Wait(600)

                SetPedToRagdoll(ped, 5000, 1, 2)

            else

                Citizen.Wait(2000)

            end

        end

    end

end)
 
Last edited by a moderator:

Latest threads

Featured content

Latest threads

Back
Top