The sole question presented by this appeal is whether the trial court correctly quashed the warrants on the grounds that they charged violations of an ordinance which was invalid for the reason that it was “a local ordinance which purports to override a statute applicable to the entire State.”
Defendants’ motions to quash raise the question of the sufficiency of the warrants to charge the commission of a criminal offense. State v. Vestal, 281 N.C. 517, 189. S.E. 2d 152 (1972); State v. Brewer, 258 N.C. 533, 129 S.E. 2d 262 (1962). It is essential to jurisdiction that a criminal offense be charged in the warrants upon which the State brings defendants to trial. State v. Vestal, supra; State v. Guffey, 265 N.C. 331, 144 S.E. 2d 14 (1965). If defendants are charged with violating a statute which is invalid, the motion to quash must be allowed. In passing upon such motions, the court treats the allegations of fact in the warrant as true and considers only the record proper and the provisions of the statute or ordinance. State v. Lee, 277 N.C. 242, 176 S.E. 2d 772 (1970); State v. McBane, 276 N.C. 60, 170 S.E. 2d 913 (1969).
[1] No constitutional question is raised by this appeal, but the determinative issue is whether Chapter 11-16, Section A of the *552Code of Ordinances of Mount Airy is consistent with the general laws of North Carolina.
G.S. 160A-174(b) provides:
“A city ordinance shall be consistent with the . . . laws of North Carolina. . . . An ordinance is not consistent with State . . . law when:
“(2) The ordinance makes unlawful an act, omission or condition which is expressly made lawful by a State or federal law;
* * *
“(5) The ordinance purports to regulate a field for which a State . . . statute clearly shows a legislative intent to provide a complete and integrated regulatory scheme to the exclusion of local regulation.”
[2] The rule that general laws should prevail over ordinances was established early in North Carolina in Town of Washington v. Hammond, 76 N.C. 33, 36 (1877):
“The true principle is that municipal by-laws and ordinances must be in harmony with the general laws of the State, and whenever they come in conflict with the general laws the by-laws and ordinances must give way. . . .”
Davis v. Charlotte, 242 N.C. 670, 89 S.E. 2d 406 (1955), was a civil action seeking an injunction to prohibit enforcement of a municipal ordinance. The ordinance prohibited the sale of beer or wine by curb service or by a “car hop.” The trial court held that this ordinance was in conflict with State law and declared it invalid. This Court affirmed holding that the State law did not distinguish “car hops” from other individuals permitted to sell or deliver beer, and that in the absence of a more restrictive definition the term “on premises” included the entire private property area designed for use by patrons while being served. Justice Bobbitt (now Chief Justice) stated:
“It may be conceded that the City of Charlotte, under its charter provisions and under G.S. 160-52 and G.S. 160-200 (6) (7) (10), had implied authority to adopt the ordinance in controversy in the absence of legislation enacted by the General Assembly dealing directly with the subject. Bailey *553 v. Raleigh, 130 N.C. 209, 41 S.E. 281; Paul v. Washington, 134 N.C. 363, 47 S.E. 793. But it is quite plain that the City of Charlotte cannot, by ordinance, make criminal or illegal any conduct that is legalized and sanctioned by the General Assembly. The ordinance, to the extent it conflicts with the general State law, is invalid. Lee v. Chemical Corp., 229 N.C. 447, 50 S.E. 2d 181; Eldridge v. Mangum, 216 N.C. 532, 5 S.E. 2d 721; S. v. Prevo, 178 N.C. 740, 101 S.E. 370.”
Accord, Staley v. Winston-Salem, 258 N.C. 244, 128 S.E. 2d 604 (1962); State v. Langston, 88 N.C. 692 (1883); 56 Am. Jur. 2d, Municipal Corporations § 374.
The Mount Airy ordinance in question provides :
“Chapter 11-16, Section A. Drinking in Public Places. No person shall have open and in his possession, or consume, serve or drink wine, beer, whiskey or any alcoholic beverages of any kind on or in the public streets of the Town of Mount Airy or upon the grounds of premises of any service stations, drive-in theaters, supermarkets, stores, restaurants, or office building, or any other business or municipal establishment providing parking space for customers, patrons, or the public within the Town of Mount Airy.”
[3] To determine whether this ordinance is contrary to the general laws of the State, we must consider the provisions of G.S. 18A-1, G.S. 18A-2, and G.S. 18A-35. G.S. 18A-1 plainly states: “The purpose and intent of this Chapter is to establish a uniform system of control over the sale, purchase, transportation, manufacture, and possession of intoxicating liquors in North Carolina, and to provide administrative procedures to insure, as far as possible, the proper administration of this Chapter under a uniform system throughout the State.” Beer, by virtue of G.S. 18A-2(4), is included in the definition of intoxicating liquors.
Beer, however, is not an alcoholic beverage as defined by G.S. 18A-2(1), but is a malt beverage defined by G.S. 18A-2(5) as a brewed beverage “containing one half of one percent (% of 1%) of alcohol by volume but not more than five percent (5%) of alcohol by weight.” The possession, consumption, and transportation of alcoholic beverages are regulated by G.S. 18A-26 through G.S. 18A-32. The transportation and possession *554of malt beverages, however, are regulated by G.S. 18A-35(a), which states: “Except as otherwise provided in this Chapter, the purchase, transportation, and possession of malt beverages and unfortified wine by individuals 18 years of age or older for their own use are permitted without restriction or regulation.”
[4] The Attorney General has not cited and we have found no provision in Chapter 18A which further restricts or regulates the possession of beer for personal use. Hence, its possession by defendants in this case for their own use is permitted without restriction or regulation. The Town of Mount Airy by its ordinance seeks to impose an additional restriction contrary to the terms of G.S. 18A-35, thereby making the possession of open beer unlawful. This it cannot do. Davis v. Charlotte, supra.
The General Assembly clearly intended to pre-empt the regulation of malt beverages in order to prevent local governments from enacting ordinances such as the one in question. Allowing local governments to regulate malt beverages contrary to State law would result in an intolerable situation whereby citizens lawfully possessing beer in one county would be violating a criminal law in another. The Legislature pre-empted the field in order to avoid such confusion.
The ordinance in question is not consistent with the general law in that (1) it makes unlawful an act which is made lawful by State law, and (2) the ordinance purports to regulate a field in which a State statute has provided a complete and integrated regulatory scheme to the exclusion of local regulations. Therefore, under G.S. 160A-174(b) the ordinance is invalid.
The warrants were properly quashed. The judgment of the Superior Court is affirmed.
Affirmed.