California repealed their Son of Sam law and passed a revised version in 2002 stating you’re allowed to write a book, but that your victims or their families (if there are any, and if the crime you committed was a “serious felony” such as murder) are allowed to sue for part of the profits.