All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
Necessity lies in fearing for one`s life, honor or mind, so the wage received for doing a forbidden job is equally forbidden. Kindly contact the Iftaa` Department to further clarify the nature of your work. And Allah The Almighty Knows Best.