Jump to content

1 Screenshot

This is the official ScriptHook for the PC remake of Red Dead Redemption.
Developers:
You can find an example project including all the files you need to setup your mod for ScriptHook here:
RDR1 Example Script Project

 

Make sure to also download the sdk that is available via the files tab.
 

Note:
Every .asi mod that you register gets its own script thread, that means every actor, mount, etc. that you spawn will only owned by your script and cleanup'd by the engine automatically.
You can hot reload all of your mods by enabling the reload hotkey (CTRL + R) in the ScriptHookConfig.ini file.
 

Known issues:

Sometimes the game can throw an Access Violation. However, you can just click OK and proceed to play the game normally.

There is currently an issue with the registerFont export. For now please stick to the default fonts. I will work something out to resolve this asap! Thanks for your patience!

ScriptHookRDR.dll SHA256: 3ecb2ebe440b31f9e0685858dc6f2f74913a9bd4d0a0ae1efa3c61c4a0ce2ebb
dinput8.dll SHA256: 2881f90498c999ccbfd58e3616c8ea8b98051b04292b1072c0feb679cac1ac45

Edited by kepmehz

What's New in Version 1.3   See changelog

Released

  • Added new export getStaticPtr
  • Added two new builtin fonts
  • Added new export getCustomFontByPath
  • Fixed registerFont system
  • Performance improvements
  • Fixed script exception logging
  • Like 3
  • Thanks 3

You may also like

  • Lenny's Simple Trainer RDR 1 PC
    By LMS
       27280   211   5
  • RDR 2 Asi Loader
    By LMS
       1630952   160   5
  • Lenny's Mod Loader RDR
    By LMS
       2614002   750   6
  • SgtJoe Bank Robberies
    By SgtJoe
       35274   18   2
  • Armadillo Adult Movie
    By hassanxzayn
       1197   6   1
  • User Feedback

    Recommended Comments

    Redharlow2614

    Posted (edited)

    it is not working for me sadly i tested your example and a toggle drunk i made neither worked

     

    this is the only error i have in the log that i attached:

     

    [15:42:25] [Error] [HOOKS] Failed to create hook for rage::scrThread::Run

    ScriptHookRDR.log

    Edited by Redharlow2614
    LMS

    Posted

    @Redharlow2614Are you using my trainer? Wonder if the hooks conflict, though this should attach earlier.

    Redharlow2614

    Posted

    Just now, LMS said:

    @Redharlow2614Are you using my trainer? Wonder if the hooks conflict, though this should attach earlier.

    i didnt even think about that hold on

    Redharlow2614

    Posted (edited)

    no error message but still not working...

     

    NVM IGNORE THIS I DID NOT HAVE ASI IN FOLDER LMAO

    it definitely works now ty

    Edited by Redharlow2614
    Evil Blunt

    Posted (edited)

    Good Work.

     

    Ill see if i can get my menu base ported over this weekend. Ill do some testing and If i run into any problems ill get a report done.

    Edited by Evil Blunt
    kepmehz

    Posted

    20 minutes ago, Evil Blunt said:

    Good Work.

     

    Ill see if i can get my menu base ported over this weekend. Ill do some testing and If i run into any problems ill get a report done.

    Make sure to use the exports drawRect, drawText, and drawSprite to draw your menu. It will be a lot easier to port menu bases from games like RDR2 or GTAV, because RDR1 has no DRAW_RECT or DRAW_TEXT natives

    Evil Blunt

    Posted

    3 minutes ago, kepmehz said:

    Make sure to use the exports drawRect, drawText, and drawSprite to draw your menu. It will be a lot easier to port menu bases from games like RDR2 or GTAV, because RDR1 has no DRAW_RECT or DRAW_TEXT natives

     

    Yeah just saw the exports, i know the game never used the draw natives (Some UI natives were used in the scripts or left in but i think they were deprecated),

    My base used the NET_PLAYER_LIST UI on console, The base code is using the same setup as my PC trainers GTAV,RDR2 so shouldn't take long adjusting it to use the exports instead of the player list UI.

    kepmehz

    Posted

    15 minutes ago, Evil Blunt said:

     

    Yeah just saw the exports, i know the game never used the draw natives (Some UI natives were used in the scripts or left in but i think they were deprecated),

    My base used the NET_PLAYER_LIST UI on console, The base code is using the same setup as my PC trainers GTAV,RDR2 so shouldn't take long adjusting it to use the exports instead of the player list UI.

    Sounds good! Looking forward to it 😀

    thetypicalham

    Posted

    3 hours ago, Redharlow2614 said:

    no error message but still not working...

     

    NVM IGNORE THIS I DID NOT HAVE ASI IN FOLDER LMAO

    it definitely works now ty

    What asi mod are you using?

     

    Redharlow2614

    Posted

    29 minutes ago, thetypicalham said:

    What asi mod are you using?

     

    my own, why?

    Nigel West Dickens

    Posted

    I put the files "ScriptHookRDR.dll" and "dinput8.dll" in the main folder but nothing happens in game, what can I do? With which key do I start it?

    regimbal42

    Posted

    i was getting access violations before any mods went in but i set my game's priority to high in the task manager and it fixed it.

    so maybe this can fix it 

    bugus

    Posted

    for me i dont have the ScriptHookConfig.ini file in my rdr files, i have launched the game several times with the scripthook.dll in my folder but nothing happens

    jack.sharif

    Posted

    Hello, how can I add a new font to the game, as far as I have checked, the fonts are images and it must have an fnt file for the words, in general, how can I do this, thank you very much

    Redharlow2614

    Posted

    does not work in undead nightmare for me. Is this a bug or was it on purpose

    jack.sharif

    Posted

    On 11/2/2024 at 3:31 AM, kepmehz said:

    Sounds good! Looking forward to it 😀

    How can i add new font 

    Rspect

    Posted

    Doesn't work. I followed the instructions but it won't work for me.
    I've attached my log file. Can anyone help?ScriptHookRDR.log

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...