All monies collected as fines or penalties for violation of the provisions of this chapter shall be paid over by the court, justice court judge, or other officer collecting or receiving the fines or penalties to the county having jurisdiction over the violation as provided by law.