How do you create a player model?

I can use lua to make spawnable npcs’ , but how do you make a player model? I’m assuming it’s close to making a spawnable NPC.

I’m thinking it probably has to do with using bones.

While not really an expert on it myself, you have to rig a model to the Valve rig the other playermodels use, for more detail check the Models/Skins section