If it's an infraction then just pay it. An infraction is civil court. If it's a misdemeanor then at least talk to a lawyer even if you just buy an hour of time. A misdemeanor is criminal court and it goes on your record. A misdemeanor on your record will affect your ability to get a job, join the military, go to school, etc.