The proceeds of sale must be deposited with the state treasurer. For a violation on an interstate or a state highway, the state treasurer shall deposit in the state highway fund an amount equal to the amount of the charges assessed under section 39-12-17 after paying the costs to the county. For any violation, an amount equal to the costs of the proceedings, including attorney's and witness fees and costs, is appropriated on a continuing basis out of the funds collected to the county of prosecution for the purpose of defraying the costs of prosecution. From the proceeds of sale for a violation that did not occur on an interstate or a state highway, the amount of charges assessed under section 39-12-17 is appropriated on a continuing basis and must be deposited in the general fund in the jurisdiction in which the violation occurred and must be used for the support of the road system of that jurisdiction. The balance of the proceeds of any sale after the payment of costs and charges is appropriated on a continuing basis out of the funds collected to be paid to the person entitled to the proceeds as determined by the court or must be deposited with the clerk of court for payment to that person.
N.D.C.C. § 39-12-20