When any statute or ordinance prescribes a fine, unless it is otherwise expressly provided or would be inconsistent with the manifest intention of the General Assembly, it shall be paid to the Commonwealth if prescribed by a statute and recoverable by presentment, indictment, information, or warrant and paid to the locality if prescribed by an ordinance and recoverable by warrant. Whenever any warrant or summons is issued pursuant to § 19.2-72 or 19.2-74 for an offense in violation of any county, city, or town ordinance that is similar to any provision of this Code, and such warrant or summons references the offense using both the citation corresponding to the county, city, or town ordinance and the specific provision of this Code, any fine prescribed by the county, city, or town ordinance shall be paid to the locality. Fines imposed and costs taxed in a criminal or traffic prosecution, including a prosecution for a violation of an ordinance adopted pursuant to § 46.2-1220, for committing an offense shall constitute a judgment and, if not paid at the time they are imposed, execution may issue thereon in the same manner as upon any other monetary judgment, subject to the period of limitations provided by § 19.2-341.
Va. Code § 19.2-340