Making a cable rotate

My title is a bit confusing. I wanted to know how i can make a cable rotate like in a tow truck the cable would rotate and get shorter or longer depending on the direction. Are there any examp[es out there i can look at I am still using 2.49


This Winch PDF might help out.