Fix Apply Look not working with Unlock All Skins turned on

Gives the skins IDs so the game doesn't give empty customization slots.
This commit is contained in:
VampireKitten 2024-10-14 14:53:56 +02:00
parent 07c2fbcadf
commit 9c621ee532

View File

@ -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
});