pwnzaz Posted November 6, 2011 Share Posted November 6, 2011 Ok so i just got hazards .net scripthook. I have read the documentation but it doesnt explain how to apply the code so i dont know much other than give the player money and spawn a vehicle. Anyway i have a problem in VB because when i view the example files some lines of code are underlined in blue because 'they arent defined'. Do i need to add some sort of reference file to the project? And does anyone know if the documentation file explains how to write the code? Thanks Link to comment Share on other sites More sharing options...
Symbiote Posted November 6, 2011 Share Posted November 6, 2011 You need to add a reference to ScriptHookDotNet.dll in scripts\for Developers\bin. The documentation file shows you all the classes, functions, enums, etc. in the hook, so it's very useful. This list of native functions is also useful: http://www.gtamodding.com/index.php?title=...ative_functions Link to comment Share on other sites More sharing options...
pwnzaz Posted November 6, 2011 Author Share Posted November 6, 2011 Thanks for the help although the bodyguard and windowexample scripts still have the undefined error Link to comment Share on other sites More sharing options...
Symbiote Posted November 6, 2011 Share Posted November 6, 2011 For those scripts, you'll also need to add a reference to System.Windows.Forms. In Visual Studio, right-click "References" and select "Add Reference...", then look in the .NET tab. 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