[Help] Change shoes

Hello ,

I have a problem when I use the SetPedComponentVariation function

function(model) SetPedComponentVariation(GetPlayerPed(-1), 6, model, 0, 2) end)

to change the shoes there is no change on my character.
If someone has an idea to solve my problem, it will be welcome

I thank you in advance for your future answers.

Regards,
Proxene