Kapone C. Young, 21, of Van Gorder Street, pleaded guilty as charged to second-degree criminal possession of a weapon.
Prosecutors said Buffalo police saw people smoking marijuana April 16 in Young’s vehicle, which was parked on Courtland Avenue.
The officers searched the vehicle and found an unlicensed and loaded pistol in a secret compartment. Prosecutors said DNA testing confirmed that the pistol belonged to Young.
Young faces up to 15 years in prison when he is sentenced Oct. 27 by County Judge Thomas P. Franczyk.