local key = 74 -- клавиша
local loop = true -- зацикленное проигрывание анимации
local sbiv = true -- сбив после отпускания клавиши
function main()
    while not isSampAvailable do wait(0) end
    while true do wait(0)
        if isKeyDown(key) and isCharOnFoot(PLAYER_PED) and not sampIsCursorActive() then
            taskPlayAnimNonInterruptable(PLAYER_PED, "POINTUP_IN", "ON_LOOKERS", 4.0999999046326, loop, false, false, false, -1)
        elseif isCharPlayingAnim(PLAYER_PED, "POINTUP_IN") and sbiv then
            if wasKeyReleased(key) then
                clearCharTasksImmediately(PLAYER_PED)
            end
        end
    end
end