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.

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

User Feedback

Recommended Comments

Redharlow2614

Insiders

(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.logFetching info...

Edited by Redharlow2614

Redharlow2614

Insiders

  On 11/1/2024 at 10:49 PM, 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

Insiders

(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

Recognized Creator

(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

Recognized Creator

  On 11/1/2024 at 11:10 PM, 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

Recognized Creator

  On 11/1/2024 at 11:31 PM, 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

Recognized Creator

  On 11/1/2024 at 11:45 PM, 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

Members

  On 11/1/2024 at 10:52 PM, 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?

 

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

Members

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

Members

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

Members

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

Insiders

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

jack.sharif

Members

  On 11/2/2024 at 12:01 AM, kepmehz said:

Sounds good! Looking forward to it 😀

How can i add new font 

Rspect

Members

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

gamerpsycho

Members

It worked for me perfectly. Try the latest update.

Need a help. Is there a way to use the methods in natives.h to see if a story mission is completed or not?

Create an account or sign in to comment