A FOREIGN national who ran out of money whilst on holiday in the UK took to supplying Class A drugs in order to pay for a ticket home, a court heard.