A man has admitted to gun charges after police found him hiding a firearm in his Orange County home, officials announced.