Comment créer une tenue staff par grade ?

Vous devez modifier la fonction que vous retrouvez dans la config du menu staff (wCore/src/addon/admin/shared). La fonction initiale est :

if not IsDuplicityVersion() then
    function TenueStaff()
        
        local model = GetEntityModel(PlayerPedId())

        if model == 0 or model == "0" then goto continue end

        if model ~= `mp_m_freemode_01` and model ~= `mp_f_freemode_01` then
            ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)
                TriggerEvent('skinchanger:loadSkin', skin)
            end)
        end

        TriggerEvent('skinchanger:getSkin', function(skin)
            if model == `mp_m_freemode_01` then -- TENUE HOMME
                clothesSkin = {
                    ['bags_1'] = 0, ['bags_2'] = 0,
                    ['tshirt_1'] = 38, ['tshirt_2'] = 0,
                    ['torso_1'] = 261, ['torso_2'] = 13,
                    ['arms'] = 0,
                    ['pants_1'] = 10, ['pants_2'] = 0,
                    ['shoes_1'] = 25, ['shoes_2'] = 0,
                    ['mask_1'] = 0, ['mask_2'] = 0,
                    ['bproof_1'] = 0,
                    ['chain_1'] = 0,
                }
            elseif model == `mp_f_freemode_01` then -- TENUE FEMME
                clothesSkin = {
                    ['bags_1'] = 0, ['bags_2'] = 0,
                    ['tshirt_1'] = 6,['tshirt_2'] = 0,
                    ['torso_1'] = 180, ['torso_2'] = 3,
                    ['arms'] = 3, ['arms_2'] = 0,
                    ['pants_1'] = 79, ['pants_2'] = 3,
                    ['shoes_1'] = 58, ['shoes_2'] = 3,
                    ['mask_1'] = 0, ['mask_2'] = 0,
                    ['bproof_1'] = 0,
                    ['chain_1'] = 0,
                }
            end
            TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)
        end)
        ::continue::
    end
end

Vous devez la remplcer par cette function.