addEventHandler('onClientPlayerDamage', localPlayer, function (Attacker, DamageType, BodyPart) if DamageType ~= 54 then return false end if getPedSimplestTask(localPlayer) == 'TASK_SIMPLE_CLIMB' then cancelEvent(true) return end end, true, 'high+999')