Chicago rapper Lil Durk, who faces multiple charges after a shooting outside the Varsity earlier this year, was released from jail Thursday night after posting a $250,000 bond.

A Fulton County judge granted bond for the 26-year-old rapper bond during a hearing Thursday but set several conditions, including a curfew between the hours of 11 p.m. and 7 a.m., the news station reported. In addition to the curfew, he must wear an ankle monitor and he cannot be near weapons.

Lil Durk, whose real name is Durk Derrick Banks, surrendered May 30 in connection with the Feb. 5 shooting outside the popular Atlanta restaurant, AJC.com previously reported. He was booked on a host of charges, including criminal attempt to commit murder, aggravated assault, possession of a firearm during the commission of a felony and possession of a firearm by a convicted felon. He also faces a criminal street gang charge, records show.

Banks and co-defendant Deavonte Bennett appeared last Friday in a Fulton County courtroom for a preliminary hearing, where police testified that robbery was a motive in the shooting.

MORE: Detective: Surveillance footage shows rapper Lil Durk firing gun outside Varsity

Police said the shooting occurred just before 6 a.m. outside the restaurant at the intersection of North Avenue and Spring Street.

The victim, identified as 23-year-old Alexander Weatherspoon, was shot once in the thigh.

After Weatherspoon was shot, he ran across the street before collapsing in front of the nearby cigar lounge, according to an Atlanta police incident report. He was rushed to Atlanta Medical Center for surgery after the bullet struck his femoral artery, police said in the report.

MORE: 'I have nothing to hide': Rapper Lil Durk denies involvement in Varsity shooting

Officers discovered 13 shell casings from a pistol and a rifle in the parking lot, according to the report. A 9 mm handgun was also recovered at the scene.

Atlanta police Detective Jeffrey Churchill said he spoke to a witness at the scene who claimed she was talking to Banks and Bennett outside a cigar bar when gunfire erupted.

The incident was reportedly captured on surveillance cameras from multiple businesses.

“You see Mr. Banks’ arm out the window firing several shots at the victim,” Churchill said.

RELATED: Rapper Lil Durk booked into jail, charged in connection with Varsity shooting

Police testified that Banks and Bennett are members of Chicago gangs and that they knew Weatherspoon had $30,000 in cash on him the night of the shooting, which is why he was allegedly targeted, according to Channel 2.

The man told police his chain and vehicle were stolen after the shooting, detectives said.

Banks has denied his involvement in the shooting. Before turning himself in last month, Banks told Channel 2 he was innocent of the charges against him.

He also released a single on YouTube called “Turn Myself In.” The song has been played more than 8 million times.

An accompanying video premiered Wednesday and has been viewed on YouTube more than 600,000 times.