Please tell if I have a government job in india (non Muslim country) and for some reason I can't attend my job can I pay some amount of my salary to some one else to that job for me. Is my salary that I am getting for government is halal or not what should I do should I resign for my post but it will be really difficult for me to earn livelihood.

You cannot pay someone to do the job for you. The job is for you and none is allowed to do except you unless if your employer allows that. Otherwise it will be haram