Script Hook RDR 2 is the library that allows you to use RDR 2 script native functions in custom *.asi plugins. By Alexander Blade.
Note that it doesn’t work in RDR Online, script hook closes RDR 2 when the player goes in multiplayer, see details in the readme.
This distrib also includes the latest Asi Loader and Native Trainer.
Copy ScriptHookRDR2.dll to the game’s main folder, i.e. where RDR2.exe is located.
In order to load asi plugins you need to have asi loader installed, you can download it separately or use the latest version that comes with this distrib (dinput8.dll).
This distrib also includes a sample asi plugin – native trainer, if you need a trainer then copy NativeTrainer.asi too.
The main concept is that compiled script plugins depend only on ScriptHookRDR2.dll, so when the game updates the only thing that user must do in order to make scripts working again is to update script hook runtime (i.e. ScriptHookRDR2.dll).