Um, I take it you cut your harness on your z?
If that is the case take a volt meter and check the wires to see which one is the +.
If these are the wires on your head unit harness the purple is for revers video an the green should be grounded to be able to watch video while the car is in motion.