local strREGPATH = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wow6432Node\\Rockstar Games\\Grand Theft Auto IV", "InstallFolder", true); if (strREGPATH ~= "") then strPATH = strREGPATH.."\\common\\data\\handling.dat"; else strPATH = nil; local tblFiles = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "DAT Files (*.dat)|*.dat|", "", "dat", false, false); if (tblFiles ~= nil) and (tblFiles[1] ~= "CANCEL") then strPATH = tblFiles[1]; end end if (strPATH ~= nil) then tblIDs, tblLines = GetIdName(); if (tblIDs) then for i, strIDName in tblIDs do result = ComboBox.AddItem("ComboBox1", strIDName, ""); end ComboBox.SetSelected("ComboBox1", 1); end end |