If your friend is an adult, are you asking this question because you hope to change him? People do change over time but rarely because a friend has said or done something. A narcissist is deeply involved with himself. Why would he think your comments or ideas are relevant to him? It is his ideas and his opinions he is interested in.
Is this friendship so important to you that you are willing to put up with the self-absorbed personality,a friendship that will be one-sided. Or do you fancy yourself as some kind of remedial counsellor? Think why you are asking this question and why this is a friend rather than an acquaintance. You must accept him as he is. He may need treatment, but this is not for you but for a psychiatrist. And he may not want that at all.
If this person is important to you, you should accept the narcissism. Do not demand or expect from them. Doing this will only disappoint you. Try to have compassion. Deep down, there is a severe absence of real confidence that makes them so critical of others. Try to keep in mind that the narcissist often has trouble connecting with others.
Everything they do is self-serving, which is an incredibly lonely way to live. To understand a narcissist, you must keep your ego out of the friendship. Since narcissists have enormous egos, they will likely see you as inferior. Try not to take it to heart. Make sure friendship is worth it.