ScriptHookRDR2 V2

by kepmehz·v2.0·Updated 2025-04-14

ScriptHook for latest game patches. Version 1491.50 features a modern native user interface to intelligently manage your scripts

Screenshots 2 screenshots

About this mod Machine translation

ScriptHook for latest game patches. Version 1491.50

Use a modern native user interface to intelligently manage your scripts

ScriptHookRDR2 V2

The goal of this project is to provide more extended functions while maintaining the same API architecture as the Alexander Blade version of ScriptHookRDR2.

There is currently a **vulnerability** in **Alexander Blade version ScriptHookRDR2**, which will cause the **game resource pool reset** problem to occur in urban areas with dense objects and pedestrians. This problem has been fixed in the V2 version.

In addition, the V2 version adopts a modern interactive interface, supports individual management of modules and implements hot loading - adding new modules does not require restarting the game.

If you would like to support my development work, you are welcome to sponsor through Patreon (of course only if you are willing and able):

I will continue to share the module development and research results of various RAGE engines.

**Patreon support link**

Installation Guide

  • Download the module loader and ScriptHookRDR2 V2 file at the same time
  • After decompression, copy dinput8.dll and ScriptHookRDR2.dll to the root directory of the RDR2 game (i.e. the folder where RDR2.exe is located)
  • Start the game and that’s it!

Acknowledgments

The API architecture is based on the original development of Alexander Blade

**Please be sure to download version 2.0, all known vulnerabilities have been fixed! **

New features

**Before using the following extended functions, please link the corresponding library files in your project first! **

  • Native command: DRAW_LINE

`Usage: Add the following code to the natives.h file

void DRAW_LINE(float fromX, float fromY, float fromZ, float toX, float toY, float toZ, int r, int g, int b, int a) { invoke(0xec2ab68b,fromX,fromY, fromZ, toX, toY, toZ, r, g, b, a); } // 0xec2ab68b`

  • Native command: SET_TEXT_FONT

`Usage: Add the following code to the natives.h file

void SET_TEXT_FONT(int fontType) { invoke(0x3EDE2F10, fontType); } // 0x3EDE2F10`

  • Native command: SET_TEXT_JUSTIFICATION

`Usage: Add the following code to the natives.h file

/* 0=center 1=left aligned 2=right aligned */

void SET_TEXT_JUSTIFICATION(int justifyType) { invoke(0x1B929974, justifyType); } // 0x1B929974`

  • Extended function: getStaticPtr (called **Locals** in the decompilation script)

**Add the following code to the main.h file:**

`DLL_IMPORT uint64_t* getStaticPtr(const char* scriptName, int staticIndex);

Usage examples:

uint64_t* static = getStaticPtr("script name", 12345);

LOG(*static); // read value

*static = 0xCOFFEEBABE; // Write value`

  • Extended function: switchLabel (replaces in-game text labels and implements custom text in the input box)

**Add the following code to the main.h file:**

`DLL_IMPORT void switchLabel(const char* oldLabel, const char* newLabel);`

  • Extended function: getCommandFromHash (obtain the corresponding instruction pointer through the hash value)

**Add the following code to the main.h file:**

`DLL_IMPORT void* getCommandFromHash(uint64_t hash);`

I wish you a happy use!

Install & use Install: follow the bundled instructions

  1. Unzip the archive from playbuff and read the bundled readme / instructions first.
  2. There is no universal mod manager for this game: some mods replace game files directly, some go into a game-specific Mods folder, and some need a game-specific community loader or tool first — follow the bundled readme.
  3. Place the files exactly as the readme says; mods with listed dependencies need those installed too.
  4. Launch the game to confirm it loaded; some games require enabling mods in settings or an in-game mod menu.

Install locations vary a lot between games and mods — the bundled readme is the most reliable guide.

File & checksum

Filename
ScriptHookRDR2 V2.zip
File size
1.8 MiB