Jump to content

Community ScripthookRDR2.NET

Special forum for the Community ScripthookRDR2.NET by @Saltyq, a tool that lets you develop script mods in .NET languages.

  1. Started by Saltyq,

    Community Script Hook RDR2 .NET  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 Mod…

      • Like
    • 5 replies
    • 11k views
  2. Since the original C# script hook hasn't been updated in almost 3 years, I decided to make my own fork of the project and start updating it again. I've already made many great improvements and additions to the new version, including a new native calling system that removes the need to use Function.Call(). Credits go to Satlyq for the original ScriptHookRDR2DotNet implementation You can find the project here: https://github.com/Halen84/ScriptHookRDR2DotNet-V2 You can download the latest version here: https://github.com/Halen84/ScriptHookRDR2DotNet-V2/releases/latest You can find all releases here: https://github.com/Halen84/ScriptHookRDR2DotNet-V2/releases/ …

  3. Hi, I'm fairly new to modding in general, but I've followed a few tutorials successfully and now I have some questions. I was trying to use the SET_PED_AMMO native function but when I went to put in the weapon hash it gives me the error: cannot convert from 'RDR2.WeaponHash' to 'RDR2.Native.InputArgument'. I tried constructing an InputArgument using this code, but it crashed my game: var hash = new RDR2.Native.InputArgument(CurrentPlayerWeapon()); //CurrentPlayerWeapon() returns the hash of the weapon currently equipped Function.Call(Hash.SET_PED_AMMO, Game.Player.Character.Handle, hash, 100); If there's better documentation…

  4. Is there a way to get all enemies of type in an array you can loop over to kill every single one of them. I looked at the documentation but didn't find anything.

    • 0 replies
    • 612 views
  5. Hello, i'm .NET dev in WinForms, and i want to create a RDR2 .NET mod with Community .Net ScriptHook. Is there a way to send notification in game with code? I'm searching but not founding ;D If a .Net modder can help me? THANKS ;D