JavaScript:
let cloth;
mp.events.add('garden_start_work', (player) => {
cloth = JSON.stringify({
Head: player.getClothes(0), Mask: player.getClothes(1), Hair: player.getClothes(2), Torso: player.getClothes(3), Legs: player.getClothes(4), Bags: player.getClothes(5),
Shoes: player.getClothes(6), Accessory: player.getClothes(7), Undershirts: player.getClothes(8), Armors: player.getClothes(9), Decals: player.getClothes(10), Tops: player.getClothes(11)
})
player.setClothes(11, 0, 11, 11)
player.setClothes(4, 90, 9, 9)
player.setClothes(6, 35, 0, 0)
player.setClothes(3, 65, 0, 0)
})
mp.events.add('garden_uval', (player) => {
let selectIn = JSON.parse(cloth)
player.setClothes(3, parseInt(selectIn.Torso.drawable), parseInt(selectIn.Torso.palette), parseInt(selectIn.Torso.texture));
player.setClothes(4, parseInt(selectIn.Legs.drawable), parseInt(selectIn.Legs.palette), parseInt(selectIn.Legs.texture));
player.setClothes(6, parseInt(selectIn.Shoes.drawable), parseInt(selectIn.Shoes.palette), parseInt(selectIn.Shoes.texture));
player.setClothes(11, parseInt(selectIn.Tops.drawable), parseInt(selectIn.Tops.palette), parseInt(selectIn.Tops.texture));
})