The Harris County Constable's Office Precinct 1 announced Eduardo Ramirez Lepe's arrest on Friday, May 31.
Deputies said Lepe planned to meet someone he believed to be a female minor to engage in sex acts, but the minor was an undercover officer he met on a social media app.
When Lepe arrived to meet up with the minor, authorities said he had flowers and a loaded handgun with him. He was booked into the Harris County Jail on a felony charge of solicitation of a minor.
Lepe is currently out on a $40,000 bond.