[VERSN2]

unlock_memory all


    combobox "Vanilla Carbon 1.4" "Carbon Battle Royale 1.2.5" "Choose which version of the game HDUI will installed on:"
    {
        "Vanilla Carbon 1.4"
        {

    combobox "English and others" "Russian" "Select your game's language:"
    {
        "English and others"
        {
// install English fonts
bind_textures synchronize GLOBAL\GLOBALA.BUN TPKBlocks GLOBALMESSAGETEXTURES "textures\LANGUAGE\ENG"
bind_textures synchronize TRACKS\L5RA\TRACKMAPS.BIN TPKBlocks TRACKMAPS "textures\L5RA\TRACKMAPS"
bind_textures synchronize TRACKS\L5RA\TRACKMAPS.BIN TPKBlocks TRACKMAPS "textures\L5RA\TRACKMAPS\ENG"
        }
        "Russian"
        {
// install Russian fonts
move_file override relative absolute textures\LANGUAGE\RUS\BUNS\FRONTB2.BUN FRONTEND\FRONTB2.BUN
move_file override relative absolute textures\LANGUAGE\RUS\BUNS\GLOBALA.BUN GLOBAL\GLOBALA.BUN
bind_textures synchronize GLOBAL\GLOBALA.BUN TPKBlocks GLOBALMESSAGETEXTURES "textures\LANGUAGE\RUS"
bind_textures synchronize TRACKS\L5RA\TRACKMAPS.BIN TPKBlocks TRACKMAPS "textures\L5RA\TRACKMAPS"
bind_textures synchronize TRACKS\L5RA\TRACKMAPS.BIN TPKBlocks TRACKMAPS "textures\L5RA\TRACKMAPS\RUS"
        }
    }
    end

bind_textures synchronize GLOBAL\DYNTEX.BIN TPKBlocks DYNAMICTEXTURES "textures\DYNTEX\DYNAMICTEXTURES"
replace_texture GLOBAL\DYNTEX.BIN TPKBlocks DYNAMICTEXTURES 0xC1FA9C2E "textures\DYNTEX\DYNAMICTEXTURES\XENON_WS_SPLASH_SCREEN.dds"
bind_textures synchronize GLOBAL\DYNTEX.BIN TPKBlocks DYNAMICTEXTURES "textures\DYNTEX\DYNAMICTEXTURES_AFTERMARKET"

combobox "Carbon" "Most Wanted" "Choose BMW M3 GTR logo style"
	    {
        "Carbon"
        {
bind_textures synchronize FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES "textures\FRONTB1\FRONTENDTEXTURES"
bind_textures synchronize FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES "textures\FRONTB1\FRONTENDTEXTURES\CARBONBMW"
replace_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES 0xD4675434 "textures\FRONTB1\FRONTENDTEXTURES\CARSELECT_MANUFACTURER_SHELBY_VINT.dds"
        }
        "Most Wanted"
        {
bind_textures synchronize FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES "textures\FRONTB1\FRONTENDTEXTURES"
bind_textures synchronize FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES "textures\FRONTB1\FRONTENDTEXTURES\MWBMW"
replace_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES 0xD4675434 "textures\FRONTB1\FRONTENDTEXTURES\CARSELECT_MANUFACTURER_SHELBY_VINT.dds"
        }
    }
    end

bind_textures synchronize GLOBAL\GLOBALA.BUN TPKBlocks GLOBALMESSAGETEXTURES "textures\GLOBALA\GLOBALMESSAGETEXTURES"

bind_textures synchronize GLOBAL\GLOBALB.LZC TPKBlocks GLOBALTEXTURES "textures\GLOBALB\GLOBALTEXTURES"
bind_textures synchronize GLOBAL\GLOBALB.LZC TPKBlocks GLOBALTEXTURESPC "textures\GLOBALB\GLOBALTEXTURESPC"
bind_textures synchronize GLOBAL\GLOBALB.LZC TPKBlocks EMITTER_SYSTEM_TEXTURE_PAGE "textures\GLOBALB\EMITTER_SYSTEM_TEXTURE_PAGE"

bind_textures synchronize GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURES "textures\INGAMEA\INGAMETEXTURES"
bind_textures synchronize GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC "textures\INGAMEA\INGAMETEXTURESPC"
bind_textures synchronize GLOBAL\INGAMEA.BUN TPKBlocks HUDTEXTURESGLOBAL "textures\INGAMEA\HUDTEXTURESGLOBAL"

bind_textures synchronize TRACKS\L5RA\MINI_MAP_CASINOTOWN_LOCKED.BIN TPKBlocks MINI_MAP_CASINOTOWN_LOCKED "textures\L5RA\MINI_MAP_CASINOTOWN_LOCKED"
bind_textures synchronize TRACKS\L5RA\MINI_MAP_CASINOTOWN_UNLOCKED.BIN TPKBlocks MINI_MAP_CASINOTOWN_UNLOCKED "textures\L5RA\MINI_MAP_CASINOTOWN_UNLOCKED"

replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x3C4A32A7 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_TFK.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x67CF5ACC "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_ROTOR4.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x6D45AB77 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_STACKED_DECK.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x9FFFC8F0 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_BUSHIDO.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xA2A46542 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_SCORPIONS.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xA99699B3 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_INFERNO.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xAE17AFD9 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_COLIBRIS.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xC3964BB5 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_21ST_CENTURY.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xC5DE7881 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_FORTUNA.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xDB1DB365 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_BLACK_HEARTS.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x727816F6 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\REGION_HIGHLIGHT_CASINO.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x78C09865 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\REGION_HIGHLIGHT_EXOTIC.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x8B357D82 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\REGION_HIGHLIGHT_MUSCLE.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xD62AE027 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\REGION_HIGHLIGHT_TUNER.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x26207F72 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_21ST_CENTURY.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x15BE728D "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_BUSHIDO.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xCFCFDF34 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_STACKED_DECK.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x548295C4 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_TFK.dds"

// Original author of this part of script: BadassBaboon
// Taken (and edited) from Remastered UI: https://nfsmods.xyz/mod/1095
checkbox "Install HD Barriers"
enabled
unpack_stream TRACKS\L5RA.BUN TRACKS\STREAML5RA.BUN TRACKS\_TEMP350
new negate TRACKS\_TEMP350\Y0\DATA.BIN
new negate TRACKS\_TEMP350\A12\DATA.BIN
new negate TRACKS\_TEMP350\E52\DATA.BIN
new negate TRACKS\_TEMP350\F49\DATA.BIN
replace_texture TRACKS\_TEMP350\Y0\DATA.BIN TPKBlocks TPK1 0xABEEC0C9 "textures\STREAML5RA\SFX_TRACKBARRIERNEONARROW_01_D.dds"
replace_texture TRACKS\_TEMP350\Y0\DATA.BIN TPKBlocks TPK6 0x55F0FE03 "textures\STREAML5RA\SFX_TRACKBARRIERNEONARROW_SOLID_01_D.dds"
replace_texture TRACKS\_TEMP350\A12\DATA.BIN TPKBlocks TEMPTEXTURES 0x57FC91B7 "textures\STREAML5RA\SFX_TRACKBARRIERLOCK_01_D.dds"
replace_texture TRACKS\_TEMP350\A12\DATA.BIN TPKBlocks TEMPTEXTURES 0xAF0EA290 "textures\STREAML5RA\SFX_TRACKBARRIERNEONLOCKED_0.dds"
replace_texture TRACKS\_TEMP350\E52\DATA.BIN TPKBlocks TPK1 0x57FC91B7 "textures\STREAML5RA\SFX_TRACKBARRIERLOCK_01_D.dds"
replace_texture TRACKS\_TEMP350\E52\DATA.BIN TPKBlocks TPK1 0xAF0EA290 "textures\STREAML5RA\SFX_TRACKBARRIERNEONLOCKED_0.dds"
replace_texture TRACKS\_TEMP350\F49\DATA.BIN TPKBlocks TPK1 0x57FC91B7 "textures\STREAML5RA\SFX_TRACKBARRIERLOCK_01_D.dds"
replace_texture TRACKS\_TEMP350\F49\DATA.BIN TPKBlocks TPK1 0xAF0EA290 "textures\STREAML5RA\SFX_TRACKBARRIERNEONLOCKED_0.dds"
update_texture TRACKS\_TEMP350\Y0\DATA.BIN TPKBlocks TPK1 0xABEEC0C9 ScrollTimestep -1024
update_texture TRACKS\_TEMP350\Y0\DATA.BIN TPKBlocks TPK1 0xABEEC0C9 ScrollSpeedT 1024

delete TRACKS\_TEMP350\Y0\DATA.BIN
delete TRACKS\_TEMP350\A12\DATA.BIN
delete TRACKS\_TEMP350\E52\DATA.BIN
delete TRACKS\_TEMP350\F49\DATA.BIN

pack_stream TRACKS\L5RA.BUN TRACKS\STREAML5RA.BUN TRACKS\_TEMP350
erase_folder absolute TRACKS\_TEMP350
disabled
end

// End of the script by BadassBaboon
// Taken (and edited) from Remastered UI: https://nfsmods.xyz/mod/1095

        }
		"Carbon Battle Royale 1.2.5"
        {
bind_textures synchronize GLOBAL\GLOBALA.BUN TPKBlocks GLOBALMESSAGETEXTURES "textures\LANGUAGE\ENG"
bind_textures synchronize GLOBAL\GLOBALA.BUN TPKBlocks GLOBALMESSAGETEXTURES "textures\GLOBALA\GLOBALMESSAGETEXTURES"

bind_textures synchronize TRACKS\L5RA\TRACKMAPS.BIN TPKBlocks TRACKMAPS "textures\L5RA\TRACKMAPS"
bind_textures synchronize TRACKS\L5RA\TRACKMAPS.BIN TPKBlocks TRACKMAPS "textures\L5RA\TRACKMAPS\CBR"

bind_textures synchronize GLOBAL\DYNTEX.BIN TPKBlocks DYNAMICTEXTURES "textures\DYNTEX\DYNAMICTEXTURES_CBR"
bind_textures synchronize GLOBAL\DYNTEX.BIN TPKBlocks DYNAMICTEXTURES "textures\DYNTEX\DYNAMICTEXTURES_AFTERMARKET"

bind_textures synchronize GLOBAL\GLOBALB.LZC TPKBlocks GLOBALTEXTURES "textures\GLOBALB\GLOBALTEXTURES"
bind_textures synchronize GLOBAL\GLOBALB.LZC TPKBlocks GLOBALTEXTURES "textures\GLOBALB\GLOBALTEXTURES\CBR"
bind_textures synchronize GLOBAL\GLOBALB.LZC TPKBlocks GLOBALTEXTURESPC "textures\GLOBALB\GLOBALTEXTURESPC"
bind_textures synchronize GLOBAL\GLOBALB.LZC TPKBlocks EMITTER_SYSTEM_TEXTURE_PAGE "textures\GLOBALB\EMITTER_SYSTEM_TEXTURE_PAGE"

combobox "Red" "Blue" "What kind of player's camo did you choose when installing CBR?"

"Red"
replace_texture GLOBAL\GLOBALB.LZC TPKBlocks GLOBALTEXTURES 0x4A651A60 "textures\GLOBALB\GLOBALTEXTURES\CBR\CAMO_TYPE_14.dds"

"Blue"
replace_texture GLOBAL\GLOBALB.LZC TPKBlocks GLOBALTEXTURES 0x4A651A60 "textures\GLOBALB\GLOBALTEXTURES\CAMO_TYPE_01.dds"

end

bind_textures synchronize GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURES "textures\INGAMEA\INGAMETEXTURES"
bind_textures synchronize GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC "textures\INGAMEA\INGAMETEXTURESPC"
bind_textures synchronize GLOBAL\INGAMEA.BUN TPKBlocks HUDTEXTURESGLOBAL "textures\INGAMEA\HUDTEXTURESGLOBAL"

bind_textures synchronize TRACKS\L5RA\MINI_MAP_CASINOTOWN_LOCKED.BIN TPKBlocks MINI_MAP_CASINOTOWN_LOCKED "textures\L5RA\MINI_MAP_CASINOTOWN_LOCKED"
bind_textures synchronize TRACKS\L5RA\MINI_MAP_CASINOTOWN_UNLOCKED.BIN TPKBlocks MINI_MAP_CASINOTOWN_UNLOCKED "textures\L5RA\MINI_MAP_CASINOTOWN_UNLOCKED"

replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x3C4A32A7 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_TFK.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x67CF5ACC "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_ROTOR4.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x6D45AB77 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_STACKED_DECK.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x9FFFC8F0 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_BUSHIDO.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xA2A46542 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_SCORPIONS.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xA99699B3 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_INFERNO.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xAE17AFD9 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_COLIBRIS.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xC3964BB5 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_21ST_CENTURY.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xC5DE7881 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_FORTUNA.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xDB1DB365 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_BLACK_HEARTS.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x727816F6 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\REGION_HIGHLIGHT_CASINO.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x78C09865 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\REGION_HIGHLIGHT_EXOTIC.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x8B357D82 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\REGION_HIGHLIGHT_MUSCLE.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xD62AE027 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\REGION_HIGHLIGHT_TUNER.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x26207F72 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_21ST_CENTURY.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x15BE728D "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_BUSHIDO.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0xCFCFDF34 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_STACKED_DECK.dds"
replace_texture GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES 0x548295C4 "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\WM_CREW_LOGO_TFK.dds"
bind_textures override GLOBAL\WMDYNTEX.BIN TPKBlocks WORLDMAPDYNAMICTEXTURES "textures\WMDYNTEX\WORLDMAPDYNAMICTEXTURES\CBR"
        }
    }
    end		

move_file override relative absolute scripts\NFSCHDContentSupport.asi scripts\NFSCHDContentSupport.asi

delete GLOBAL\GLOBALA.BUN
delete GLOBAL\GLOBALB.LZC
delete GLOBAL\INGAMEA.BUN
delete GLOBAL\WMDYNTEX.BIN
delete FRONTEND\FRONTB1.LZC
delete TRACKS\L5RA\MINI_MAP_CASINOTOWN_LOCKED.BIN
delete TRACKS\L5RA\MINI_MAP_CASINOTOWN_UNLOCKED.BIN
delete TRACKS\L5RA\TRACKMAPS.BIN