nitanmarcel Posted December 23, 2015 Share Posted December 23, 2015 Hi! I tried to make a scripthook.net template in C# using Visual Studio 2013 but it didn't work. When I press Build I get reference errors even if I have ScriptHookVDonNet.dll selected as reference. Can someone give me an working script template? Thanks! Link to comment Share on other sites More sharing options...
AHK1221 Posted December 23, 2015 Share Posted December 23, 2015 (edited) first add ScriptHookVDotNet.dll as a reference in your project along with System.Windows.Forms. then click the scripthook reference and set copy local to false. Then go to Project>(your project) settings and then in the build tab scroll down and where it says bin\debug replace that with your GTA 5 directory\scripts. After this open up your class and add the two using namespaces: using GTA;using System.Windows.Forms;and then make the class inherit Script: public class Class1 : ScriptCongrats you made the template! Now start scripting! Edited December 23, 2015 by AHK1221 Link to comment Share on other sites More sharing options...
nitanmarcel Posted December 24, 2015 Author Share Posted December 24, 2015 first add ScriptHookVDotNet.dll as a reference in your project along with System.Windows.Forms. then click the scripthook reference and set copy local to false. Then go to Project>(your project) settings and then in the build tab scroll down and where it says bin\debug replace that with your GTA 5 directory\scripts. After this open up your class and add the two using namespaces: using GTA;using System.Windows.Forms;and then make the class inherit Script: public class Class1 : ScriptCongrats you made the template! Now start scripting! Same problem: http://imgur.com/y0Qux9z What I'm doing wrong? Link to comment Share on other sites More sharing options...
aimless Posted December 24, 2015 Share Posted December 24, 2015 Make sure you installed net framework 4.5.2 And Visual C++ Redistributable package 2013 In visual studio select properties Application and select .NET Framework 4.5.2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now