(705 ILCS 405/5-505)
    Sec. 5-505. Pre-trial conditions order.
    (1) If a minor is charged with the commission of a delinquent act, at any appearance of the minor before the court prior to trial, the court may conduct a hearing to determine whether the minor should be required to do any of the following:
        (a) not violate any criminal statute of any
    
jurisdiction;
        (b) make a report to and appear in person before any
    
person or agency as directed by the court;
        (c) refrain from possessing a firearm or other
    
dangerous weapon, or an automobile;
        (d) reside with his or her parents or in a foster
    
home;
        (e) attend school;
        (f) attend a non-residential program for youth;
        (g) comply with curfew requirements as designated by
    
the court;
        (h) refrain from entering into a designated
    
geographic area except upon terms as the court finds appropriate. The terms may include consideration of the purpose of the entry, the time of day, other persons accompanying the minor, advance approval by the court, and any other terms the court may deem appropriate;
        (i) refrain from having any contact, directly or
    
indirectly, with certain specified persons or particular types of persons, including but not limited to members of street gangs and drug users or dealers;
        (j) comply with any other conditions as may be
    
ordered by the court.
    No hearing may be held unless the minor is represented by counsel. If the court determines that there is probable cause to believe the minor is a delinquent minor and that it is in the best interests of the minor that the court impose any or all of the conditions listed in paragraphs (a) through (j) of this subsection (1), then the court shall order the minor to abide by all of the conditions ordered by the court.
    (2) If the court issues a pre-trial conditions order as provided in subsection (1), the court shall inform the minor and provide a copy of the pre-trial conditions order effective under this Section.
    (3) The provisions of the pre-trial conditions order issued under this Section may be continued through the sentencing hearing if the court deems the action reasonable and necessary. Nothing in this Section shall preclude the minor from applying to the court at any time for modification or dismissal of the order or the State's Attorney from applying to the court at any time for additional provisions under the pre-trial conditions order, modification of the order, or dismissal of the order.
(Source: P.A. 90-590, eff. 1-1-99.)