It doesn't make the bot jump when clearpath, jumping and isTimer is equals to false. It occurs frequently but randomly.
Inside onClientRender
local jumping = getPedControlState(bot, "jump")
local clearpath = isLineOfSightClear(px, py, pz+2, x, y, z+2, true, true, false, true, false, true, false)
outputChatBox("Clear: " .. tostring(clearpath))
outputChatBox("Jumping: " .. tostring(jumping))
if((clearpath == false) and (jumping == false) and (isTimer(jumpTimer) == false)) then
setPedAnimation(bot)
setPedControlState(bot, "jump", true)
jumpTimer = setTimer(setPedControlState, 500, 1, bot, "jump", false)
end