In new court documents, 28-year-old Cameron James Pettit has officially been charged in connection to rapper Mac Miller's 2018 death. Following an autopsy, it was found that Miller ingested a combination of fentanyl, cocaine, and alcohol, which was determined to be directly related to his death. As the Hollywood Hills resident is facing up to 20 years in a federal prison for drug trafficking charges, Pettit's private messages to friends regarding the matter have been revealed.

According to the Mirror, court documents revealed a series of secret exchanges that Pettit had with his friends regarding Miller's death.

One direct message that he had sent to a friend shortly thereafter said he "should probably not post anything... just to be smart," while another read, "I am not great ... Most likely I will die in jail." Both messages were obtained by federal investigators via a warrant.

Additionally, Pettit seemed to understand that he played a role in the rapper's death as he was recorded as saying, "Nothing has happened yet...but it might."

Reportedly, the "Small Worlds" singer had requested "percs," short for percocets, but had ended up with the fentanyl-laced pills that ultimately contributed to his overdose, reports TMZ.

In the court documents, authorities pointed out that text messages proved that Pettit had agreed to provide "30-milligram oxycodone pills, cocaine, and Xanax." However, the oxycodone pills were counterfeits, as they were instead laced with fentanyl, which is a synthetic opioid that has the potential to be up to 50 times more potent than heroin. It remains unclear whether or not he knew the make up of the drugs before giving them to the late rapper, states the Los Angeles Times.

As stated in the criminal complaint, Pettit was one of three people who supposedly gave the late rapper the counterfeit drugs, but it remains to be seen if the others will face similar charges. At this time, the alleged dealer is being held without bond and is set to be arraigned on Oct. 11.

Mac Miller
Mac Miller is pictured attending MTV’s “Wonderland” LIVE Show on Sept. 22, 2016 in Los Angeles. Dale Berman/Getty Images