My question involves criminal law for the state of: Illinois

I got caught 2 days ago with 2.4 grams of Marijuana. They let me and my friend go after giving us complaints ( we were arrested, taken...