 The homeless people who worked as extras were paid a full days  minimum wage (which is $8.62/hr in SF) and given free catered meals  as compensation for appearing in the film. For some it was the first  money theyd made in a while.