What's new

Guide anti-bunnyhop

Lilibeth

Gold Elite
Joined
Jul 4, 2021
Messages
186
Reaction score
42,643
Points
316
✌️Hello VAG Forum Family✌️


Paste this code any client side
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)



GOOD FORUMS 🖋️
 

Zan1456

Zan#1456
VIP
Joined
Mar 19, 2021
Messages
788
Solutions
5
Reaction score
66,077
Points
421
Location
Hungary
Website
vfivem.com
✌️Hello VAG Forum Family✌️


Paste this code any client side
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)



GOOD FORUMS 🖋️
 

Attachments

  • antibunnyhop.zip
    1.2 KB · Views: 169
Top