Need clothes convertion or ID list

Hello Everyone!

Just two day that I work to find a solution to convert thos SetPedComponent to on other format that will put the clothes on players…

See below the data that I take from the PresidentJob:

SetPedComponentVariation(GetPlayerPed(-1), 7, 115, 0, 0) – Cravate
SetPedComponentVariation(GetPlayerPed(-1), 8, 10, 0, 0) – Chemise
SetPedComponentVariation(GetPlayerPed(-1), 3, 4, 0, 0) – Main
SetPedComponentVariation(GetPlayerPed(-1), 11, 28, 0, 0) – Veste
SetPedComponentVariation(GetPlayerPed(-1), 4, 10, 0, 0) – Jeans
SetPedComponentVariation(GetPlayerPed(-1), 6, 10, 0, 0) – Chaussure

I Need to convert it on this format to be put on the job.grade:

{“mask_1”:0,“arms”:1,“glasses_1”:0,“hair_color_2”:4,“makeup_1”:0,“face”:19,“glasses”:0,“mask_2”:0,“makeup_3”:0,“skin”:29,“helmet_2”:0,“lipstick_4”:0,“sex”:0,“torso_1”:24,“makeup_2”:0,“bags_2”:0,“chain_2”:0,“ears_1”:-1,“bags_1”:0,“bproof_1”:0,“shoes_2”:0,“lipstick_2”:0,“chain_1”:0,“tshirt_1”:0,“eyebrows_3”:0,“pants_2”:0,“beard_4”:0,“torso_2”:0,“beard_2”:6,“ears_2”:0,“hair_2”:0,“shoes_1”:36,“tshirt_2”:0,“beard_3”:0,“hair_1”:2,“hair_color_1”:0,“pants_1”:48,“helmet_1”:-1,“bproof_2”:0,“eyebrows_4”:0,“eyebrows_2”:0,“decals_1”:0,“age_2”:0,“beard_1”:5,“shoes”:10,“lipstick_1”:0,“eyebrows_1”:0,“glasses_2”:0,“makeup_4”:0,“decals_2”:0,“lipstick_3”:0,“age_1”:0}:

Does anyone no a solution to convert or list the ID of clothes?

Thanks in advance for help!!

just find the solution:

  if data.current.value == 'state_wear' then

    ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)

      if skin.sex == 0 then
            SetPedComponentVariation(GetPlayerPed(-1), 7, 115, 0, 0) -- Cravate
            SetPedComponentVariation(GetPlayerPed(-1), 8, 10, 0, 0) -- Chemise
            SetPedComponentVariation(GetPlayerPed(-1), 3, 4, 0, 0) -- Main
            SetPedComponentVariation(GetPlayerPed(-1), 11, 28, 0, 0) -- Veste
            SetPedComponentVariation(GetPlayerPed(-1), 4, 10, 0, 0) -- Jeans
            SetPedComponentVariation(GetPlayerPed(-1), 6, 10, 0, 0) -- Chaussure    
      else
        TriggerEvent('skinchanger:loadClothes', skin, jobSkin.skin_female)
      end

    end)

  end

(I know this is an old post but thought id give it a shot)

So how in the end did you manage to convert it into the ESX Jobgrade form cause i simply cannot figure it out!, I hope you can help :slight_smile: thank you in advance

Yeah can u tell please ? I m like desperate to find out how can i get those ids

Did you ever figure this out? Im trying to do the opposite lol.