Disable bunny hopping

0 replies1,679 views2y ago
Original post · 2y ago#1
The character falls to the ground after jumping two or three times and then stands up.

Add any Client.lua

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)

0 replies

No replies yet

Sign in to join the discussion.

Sign in to reply

Join the discussion — it takes less than a minute.