9:05PM PDT Amanda's face was covered by a wild platinum blonde wig as cops transferred her from the precinct to night court ... where she'll face a judge in the morning.
8:40PM PDT An NYPD source says a building official called police after spotting Amanda in the lobby with a joint. When police arrived she was in her apartment, but let officers in when they knocked.
We're told officers saw a bong, and that's when Amanda tossed it ... and then got arrested.
Sources confirm Amanda was briefly taken to a hospital for psychiatric evaluation before she was booked.
Amanda Bynes was arrested in her NYC apartment tonight for marijuana possession ... TMZ has learned.
According to law enforcement sources ... police found the weed when they responded to a call for a disorderly person at Bynes' apartment building.
A source close to Amanda tells us police were called because the troubled actress was behaving erratically ... doing things like talking to herself.
We're told Amanda went ballistic during the arrest, yelling ... "Don't you know who I am?"
Our law enforcement sources say she's been booked for criminal possession of the pot, as well as reckless endangerment and felony tampering with evidence.
The endangerment and tampering occurred when Bynes allegedly threw a bong out of her apartment window.