Safety riding for a toddler in single cab truck

In texas, is it legal for a 2.5 year old in a front facing carseat to ride in the middle of a single cab truck?