Body groups and Skins, through setting a model.

When I set a player to a model, or have models display in my gamemode, how Would I go about making it so I can choose the skin and body group
also for the model I want to set on the player, using LUA?