Won't work without this. With V2, using F12 (default input) to bring up the menu, you can toggle the script, and then after the player's weight changes, it will revert back to vanilla. Probably.
Won't work without this. With V2, using F12 (default input) to bring up the menu, you can toggle the script. If you're using the normal one from Alexander Blade, please upgrade to this one.
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
This mod is opted-in to receive Donation Points
Changelogs
Version 1.1.1
Fixed bug on reload and save game load
Added ScriptHook log window under Debug -> Log
Version 1.1
Added new Interface with ImGui for Vulkan and DX12
Fixed crash on save game reload
Fixed infinite loading screen/blackscreen on startup
Removed export worldGetAllVolumes()
Added export worldGetAllBoxVolumes()
Added export worldGetAllSphereVolumes()
Added export worldGetAllCylinderVolumes()
Version 1.0.8
Fixed some issues that could cause blackscreens and crashes on loading screens
Improved performance
Changed the interface hotkey to Ctrl + F12
Version 1.0.7
Added individual script reloading in interface
Fixed bugs, with blackscreens and mods not working properly
Version 1.0.6
Added Script selection on Un- and Reload
Fixed some bugs
Version 1.0.5.2
Fixed a ton of issues with different mods not working
Version 1.0.5
Added Interface to manage Scripts loaded by the Hook and Unload button for ScriptHook.
Version 1.0.4.3
Removed *.asi loader, since it just made problems, for some people, for some reason
Version 1.0.4.2
Switched *.asi loader to dinput8.dll, to confuse less people.
Version 1.0.4.1
Added own *.asi loader "dsound.dll"
Version 1.0.4
Added native: SET_TEXT_FONT
Added native: SET_TEXT_JUSTIFICATION
Added native: DRAW_LINE
Added export: switchLabel
Added export: getCommandFromHash
Version 1.0.3
Added getStaticPtr Export
Added Reload Support
Version 1.0.1
Added support for old mod versions
Added Native Command Caching to improve Performance
ScriptHookRDR2 V2 The purpose of this project is to provide an alternative to Alexander Blade's ScriptHookRDR2 while maintaining the same API architecture and adding more features to it. There is a bug in the current version of Alexander Blade's ScriptHookRDR2 that causes the game pools to reset in cities with a high number of objects and pedestrians. This issue is not present in ScriptHookRDR2 V2. In addition, V2 includes a modern native UI that allows you to manage your mods individually and add new ones without the need to restart the game.
If you want to support me and my development, consider becoming one of my patrons, but only of course if you want and can: I am planning on posting all kinds of mod development and research on RAGE. Patreon
Make sure to download version 1.1.1 it fixes all bugs! Additional Features: To use the below listed exports, link the provided library in your project!
1. Native command: DRAW_LINE How to use: void DRAW_LINE(float fromX, float fromY, float fromZ, float toX, float toY, float toZ, int r, int g, int b, int a) { invoke<void>(0xec2ab68b,fromX,fromY, fromZ, toX, toY, toZ, r, g, b, a); } // 0xec2ab68b Add this line to your natives.h file.
2. Native command: SET_TEXT_FONT How to use: void SET_TEXT_FONT(int fontType) { invoke<void>(0x3EDE2F10, fontType); } // 0x3EDE2F10 Add this line to your natives.h file.
3. Native command: SET_TEXT_JUSTIFICATION How to use: /* 0=Center,1=Left,2=Right */ void SET_TEXT_JUSTIFICATION(int justifyType) { invoke<void>(0x1B929974, justifyType); } // 0x1B929974 Add this line to your natives.h file.
4. Export: getStaticPtr (called Locals in the decompiled scripts) Add this line to your main.h file: DLL_IMPORT uint64_t* getStaticPtr(const char* scriptName, int staticIndex);
Usage: uint64_t* static = getStaticPtr("script_name" 12345); LOG(*static)// to read *static = 0xCOFFEEBABE// to write
5. Export: switchLabel (Switch text labels from the game with your own, this will allow you to provide your custom text in input boxes) Add this line to your main.h file: DLL_IMPORT void switchLabel(const char* oldLabel, const char* newLabel);
6. Export: getCommandFromHash (Returns a pointer to the command of the provided hash) Add this line to your main.h file: DLL_IMPORT void* getCommandFromHash(uint64_t hash);