All fines, penalties, and forfeitures collected for offenses against the ordinances of a city, including those fines, penalties, and forfeitures collected as a result of a judgment of a district court rendered pursuant to section 40-18-19, must be paid into the city's treasury at such time and in such manner as may be prescribed by ordinance.
N.D.C.C. § 40-11-13