The Gurgaon District court on Friday convicted 31 people for participating in a factory riot in 2012 in a Maruti Suzuki factory in Manesar, Haryana.