A Texas bartender was busted for serving the gunman who went on a deadly, drunken shooting rampage at a Dallas Cowboys watch party nearly two years ago, officials said.

Lindsey Glass, 27, was arrested last Tuesday for allegedly violating a state beverage code that prohibited her from serving a “habitual drunkard or an intoxicated or insane person,” news station DFW-TV reported.

Glass, who worked at Plano’s Local Public House, served Spencer Hight on Sept. 10, 2017, before he drove to his estranged wife’s house and opened fire. Hight, 32, killed eight people, including his spouse, then was fatally shot by a responding officer, police said.

The investigation later revealed Hight had a blood alcohol level four times the state’s legal limit when he went on the shooting spree, DFW-TV reported.

Investigators said Glass should’ve known not to serve the gunman when he displayed signs of intoxication at the bar.

She reportedly texted another employee saying that “Spencer has a big knife on the bar and is spinning it and just asked for his tab and said I have to go do some dirty work … Psychoooooooo.”

The misdemeanor charge against Glass carries a sentence of up to a year in jail and a fine of as much as $500.