fix: Apply Look not working with Unlock All Skins turned on #549
@ -105,10 +105,12 @@ const inventoryController: RequestHandler = async (request, response) => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if (config.unlockAllSkins) {
 | 
					    if (config.unlockAllSkins) {
 | 
				
			||||||
        inventoryResponse.WeaponSkins = [];
 | 
					        inventoryResponse.WeaponSkins = [];
 | 
				
			||||||
 | 
					        let i = 0;
 | 
				
			||||||
        for (const uniqueName in ExportCustoms) {
 | 
					        for (const uniqueName in ExportCustoms) {
 | 
				
			||||||
 | 
					            i++;
 | 
				
			||||||
            inventoryResponse.WeaponSkins.push({
 | 
					            inventoryResponse.WeaponSkins.push({
 | 
				
			||||||
                ItemId: {
 | 
					                ItemId: {
 | 
				
			||||||
                    $oid: "000000000000000000000000"
 | 
					                    $oid: i.toString().padStart(24, "0")
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                ItemType: uniqueName
 | 
					                ItemType: uniqueName
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user