@jhonnyconv , you need to answer the following first , please :
(a) are you US citizen/ Resident ( Green Card ); (b) Is your tax home abroad i.e. can you pass the Physical Presence Test; (c) Are you being paid by a US govt. department; (d) Is the income from sole proprietor business / self-employment from local entity or is the payment from an US entity?; (e) are you being taxed by the foreign tax administration as Income tax or similar ?
To be able to be eligible for foreign tax credit or foreign earned income exclusion you would need to satisfy a number of these requirements . Please answer and I will come back and close the loop with you