5. Power of court to require released offenders to pay compensation and costs.-
(1) The court directing the release of an offender under section 3 or section 4, may, if it thinks fit, make at the same time a further order directing him to pay-
(a) such compensation as the court thinks reasonable for loss or injury caused to any person by the commission of the offence; and
(b) such costs of the proceedings as the court thinks reasonable.
(2) The amount ordered to be paid under sub-section (1) may be recovered as a fine in accordance with the provisions of sections 386 and 387 of the Code.
(3) A civil court trying any suit, arising out of the same matter for which the offender is prosecuted, shall take into account any amount paid or recovered as compensation under sub-section (1) in awarding damages.