function findpickup(mode)
local x, y, z = getBotPosition()
if mode == 0 then
for k, v in pairs(getAllPickups()) do
if getDistanceBetweenCoords2d(x, y, v.position.x, v.position.y) <= 3 then
newTask(function()
wait(3000)
sendKey(1024)
wait(100)
sendPickedUpPickup(k)
end)
end
end
end
end