40.The fine and costs imposed by the municipal court for an offence under this Act shall belong to the local municipality and shall be paid into its general fund, except the part of the costs remitted by the collector to any other prosecuting party that has incurred expenses in relation to the proceeding, and the costs remitted to the defendant pursuant to article 223 of the Code of Penal Procedure (chapter C‐25.1).