marhex 17 Posted September 7, 2015 Share Posted September 7, 2015 is thear any way to get the version of installed scripthookvdotnet so i want the script to load if the version is 2.0.0 if not the script is not loaded sorry for my bad english Link to post Share on other sites
bilago 25 Posted September 10, 2015 Share Posted September 10, 2015 (edited) is thear any way to get the version of installed scripthookvdotnet so i want the script to load if the version is 2.0.0 if not the script is not loaded sorry for my bad english Simple C# code... using System.Reflection;if (AssemblyName.GetAssemblyName("scripthookvdotnet.dll").Version.Major < 2) this.Abort(); You may also be able to just use: Assembly.GetExecutingAssembly().GetName().Version.Major But I have not tried it. Edited September 10, 2015 by bilago Link to post Share on other sites
marhex 17 Posted September 10, 2015 Author Share Posted September 10, 2015 is thear any way to get the version of installed scripthookvdotnet so i want the script to load if the version is 2.0.0 if not the script is not loaded sorry for my bad english Simple C# code... using System.Reflection;if (AssemblyName.GetAssemblyName("scripthookvdotnet.dll").Version.Major < 2) this.Abort(); You may also be able to just use: Assembly.GetExecutingAssembly().GetName().Version.Major But I have not tried it. thenks i will try it Link to post Share on other sites