Any help on improving that API is much appreciated.Įither use notepad to edit source code scripts directly or use Visual Studio to compile them to assemblies. The remaining files in source/scripting implement the scripting API.
NET assembly (.dll) inside the "scripts" folder in your game directory and start scripting! Create (or download) a C#/VisualBasic code file (.cs.NET and copy the ASI file into your game folder.
Download and install the latest Script Hook V (including the ASI loader).NET Framework 4.5.2 and the Visual C++ Redistributable Package for Visual Studio 2013 (圆4) (or loading will fail). Thanks a lot to Alexander Blade for Script Hook V and HazardX for the inspiration with his GTAIV. Scripts are executed in a separate AppDomain, any exceptions thrown thus shouldn't affect the game or ScriptHook. It also comes with a vast scripting API abstracting away the native function calls (you can still do those manually through "" though). NET scripts and reload them while the game is running (press the "Insert" key).
Right now it's able to load, compile and run. It's full source code is hosted on Github, development is community-driven and open to everybody, so contributions are warmly welcomed. This ASI plugin for the just released Script Hook V attempts to recreate this experience for GTAV. NET languages to write scripts that can be executed ingame. NET ScriptHook back from GTAIV, it allowed using the easy to learn, but extremly powerful.