Convert model to playermodel

Sorry if this has been asked a bunch of times, but I can’t find it, nor can I google it.

What is the exact process to convert models to be working, fully-rigged playermodels? – I load these up, spawn them as ragdolls, they seem to have bones. Then I SetModel on myself to one, and I’m T-posed.

Is there a tutorial anywhere? Can someone reply quickly? I’ve searched this for ages and can’t find anything.

I don’t care if it’s a simple hexing or you have to tear the model apart and recompile it; just need the definitive answer.

Thanks in advance.

This may help.