Is it illegal for me to work for a friend while i am over there for a few weeks .??. could i get into trouble ??
If you are getting paid to then yes.
The consequences may be that you are not allowed to officially gain employment here in the future, and also your friend will get in trouble.