Community ScriptHook RDR2 .NET
This is an ASI plugin for Red Dead Redemption 2, ported from ScriptHookVDotNet, based on the C++ ScriptHook by Alexander Blade, which allows running scripts written in any .NET language in-game.
THIS IS A PRE RELEASE BUILD, USE HOW YOU WANT TO! EXPECT ERRORS, CRASHES, ETC
This is an ASI plugin for Red Dead Redemption 2, ported from ScriptHookVDotNet, based on the C++ ScriptHook by Alexander Blade, which allows running scripts written in any .NET language in-game.
USE:
Copy ScriptHookRDRDotNet.asi, ScriptHookRDRNetAPI.dll, AND ScriptHookRDRDotNet.ini to your RDR2 Install folder.
Install scripts to /scripts/ folder inside root folder
Known Issues
Returning pointers causes crash.
Requirements
C++ ScriptHookRDR2 by Alexander Blade
.NET Framework ≥ 4.8
Visual C++ Redistributable for Visual Studio 2019 x64
For Developers:
Create .NET Framework project ≥ 4.8
Add Reference to ScriptHookRDRNetAPI.dll
use RDR2 namespace
**See ExampleScript.cs**
Contributing
The source for this project is on Github here
You’ll need Visual Studio 2017 or higher to open the project file and the Script Hook RDR2 SDK extracted into “/sdk”.Additionally, create an environment variable called RDR2DN_VERSION and set it to the version you are attempting to build.
Any contributions to the project are welcomed, it’s recommended to use GitHub pull requests.