In unlawful detainer proceedings, the plaintiff who recovers judgment for possession of premises, and who advances or pays to the sheriff or marshal the expenses required for the eviction of any persons in possession or occupancy of the premises and the personal property of such persons, shall, after being advised by the sheriff or marshal of the exact amount necessarily used and expended to effect the eviction, be allowed to file a request for the same pursuant to rules adopted by the Judicial Council.
Ca. Civ. Proc. Code § 1034.5