[VERSN2]
//unlocks memory files and installs speedreflect.asi in scripts folder
unlock_memory all
speedreflect auto

if collection_exists GLOBAL\GLOBALB.LZC CarTypeInfos INFIFX45
	do
		// nothing
	else
		// Add unlock condition
		copy_incareer GLOBAL\GLOBALB.LZC GCareers Main GCarUnlocks G35 INFIFX45
end

// Add CarTypeInfos
import override GLOBAL\GLOBALB.LZC CarTypeInfos FX45\CarTypeInfos\INFIFX45.BIN

// Add DBModelParts
import override GLOBAL\GLOBALB.LZC DBModelParts FX45\DBModelParts\INFIFX45.BIN

// Move BIN files to the INFIFX45 folder
move_file override relative absolute FX45\INFIFX45\GEOMETRY.BIN CARS\INFIFX45\GEOMETRY.BIN
move_file override relative absolute FX45\INFIFX45\TEXTURES.BIN CARS\INFIFX45\TEXTURES.BIN
move_file override relative absolute FX45\INFIFX45\VINYLS.BIN CARS\INFIFX45\VINYLS.BIN
move_file override relative absolute FX45\INFIFX45\PARTS_ANIMATIONS.BIN CARS\INFIFX45\PARTS_ANIMATIONS.BIN

// Add SlotOverrides
import override GLOBAL\GLOBALB.LZC SlotOverrides FX45\SlotOverrides\INFIFX45_PART_SPOILER.BIN
import override GLOBAL\GLOBALB.LZC SlotOverrides FX45\SlotOverrides\INFIFX45_PART_WING_MIRROR.BIN

// Add Car Sound Tuner ini
move_file override relative absolute FX45\CarSoundData\CarTypeMapping\INFIFX45.ini scripts\CarSoundData\CarTypeMapping\INFIFX45.ini 

// Add Unlimiter ini
move_file override relative absolute FX45\UnlimiterData\INFIFX45.ini scripts\UnlimiterData\INFIFX45.ini 

if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
	do
		update_collection FRONTEND\FRONTB.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
	else
end

// Add badge texture
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_INFIFX45 SECONDARY_LOGO_INFIFX45 FX45\SECONDARY_LOGO_INFIFX45.dds