[Help] SetPedComponentVariation

Hello,

nothing is happening !! I want to change the face of my character but SetPedComponentVariation does nothing !!! I’ve sorted out what?

Citizen.CreateThread(function()
    while true do
	   Citizen.Wait(0)
       for i=0,19 do
        Citizen.Wait(1)
        SetPedComponentVariation(GetPlayerPed(-1), 0, i, 0, 0)
        exports.system:Notify("id:" .. i)
       end
    end
end)

Your script is calling SetPedComponentVariation every single frame, a total of 19 times. That’s quite a lot.
You should try calling an event or handle input from user instead.
Anyway, it should work, try to check if your script is in your __resource.lua and client side.