From 9c621ee53283d9c4b8804e642a5f5b0632bfc794 Mon Sep 17 00:00:00 2001 From: VampireKitten Date: Mon, 14 Oct 2024 14:53:56 +0200 Subject: [PATCH] Fix Apply Look not working with Unlock All Skins turned on Gives the skins IDs so the game doesn't give empty customization slots. --- src/controllers/api/inventoryController.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index fcbaf5de..4f7523db 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -105,10 +105,12 @@ const inventoryController: RequestHandler = async (request, response) => { if (config.unlockAllSkins) { inventoryResponse.WeaponSkins = []; + let i = 0; for (const uniqueName in ExportCustoms) { + i++; inventoryResponse.WeaponSkins.push({ ItemId: { - $oid: "000000000000000000000000" + $oid: (i).toString().padStart(24, '0') }, ItemType: uniqueName });