Jump to content

[HELP] Register Sprites in Game


Recommended Posts

Hi, anyone has issues on register own sprites on game.

The ytd file is convert with RedM and is usabled on RDR2 but maybe there is something wrong.

 

First i think the signature is good i land on the function:

_DWORD *__fastcall RegisterTextureFile(_DWORD *a1, __int64 a2, char a3, __int64 a4, char a5, char a6)

 

Code :

typedef uint32_t* (__cdecl* FileRegister)                    (int*, const char*, bool, const char*, bool, bool);
static FileRegister RegisterTextureFile = (FileRegister)(sc.scan("48 8B CE B2 01 4D 8B F9 45 8A E0 E8").As<decltype(RegisterTextureFile)>());

 

Later i used:

 

    RegisterTextureFile(&textureID, StringToChar(holder), true, "texture.ytd", true, true);

 

Where holder is the patch to the file .ytd on this case a folder on Desktop.

texture.ytd is the name of the file.

 

Others bool args take from super old scripts that i found

 

 

    RegisterTextureFile(&textureID, StringToChar(holder), true, "texture.ytd", true, true);

 

With this i can general enter on game and see Arthur but one time i click on game windows, the game just crash.

 

 

Link to comment
Share on other sites

  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...