Jump to content

Community ScriptHookRDR2 .NET


Saltyq
 Share

Recommended Posts

Community Script Hook RDR2 .NET
UynJYKg.png

 

THIS PROJECT IS NO LONGER IN DEVELOPMENT AND LIKELY DOES NOT WORK.
THERE IS AN IMPROVED, UPDATED FORK OF THIS PROJECT HERE - A HUGE THANK YOU TO THEM!

 

Releases

Download binaries here

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.

USAGE
Copy ScriptHookRDRDotNet.asi, ScriptHookRDRNetAPI.dll, AND ScriptHookRDRDotNet.ini to your RDR2 Install folder.
Install scripts to /scripts/ folder inside root folder

Join the official Red Dead Redemption 2 Modding Discord for the latest information about Red Dead Redemption 2 PC mods

Requirements
C++ ScriptHookRDR2 by Alexander Blade
.NET Framework ≥ 4.6
Visual C++ Redistributable for Visual Studio 2019 x64

For Developers
Create .NET Framework project ≥ 4.6
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.


 

Spoiler

Credits
Crosire (ScriptHookVDotNet)
Jedijosh920 - lots of help

 

Edited by Saltyq
  • Like 2
Link to comment
Share on other sites

  • Saltyq pinned this topic

Just released a pretty hefty API update with the help of MoosheTV.

 

This includes:
Updates to UI.Screen > UI.Sprite > RDR2.Blip (Added Sprites and Type IDs)
RDR2.Entity > Ped (Core Values!) > Ped.AnimationFlags > Ped.Bone (Just names, no hashes)
Ped.Tasks (Bunch of Tasks implemented into API) > Ped.VehicleFlags > Vehicle (Model Hashes & Seats!)
RDR2.Game > RDR2.Pickup / PickupType > Player (Money Values!) > RaycastResult > RDR2.Weapon (Hashes!)
RDR2.Weapon.AmmoType > Weapon.WeaponCollection > Weapon.WeaponGroup > RDR2.World
RDR2.Weather

 

Added RDR2.Prompt

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...
  • 5 weeks later...
  • 6 months later...

I have the newest version, the one posted AFTER the Rockstar update...and it worked for one day but now no longer works..

 

I've even uninstalled and reinstalled the complete game (and even Steam) and still does NOT work.  It stalls at the loading screen, where the white line at the bottom loads from left to right (and crashed 1/2 the way there)...

 

Any suggestions????  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...