Jump to content

Recommended Posts

Posted

I see Alexander Blade's ScriptHookRDR2 SDK is

DWORD model = GAMEPLAY::GET_HASH_KEY(const_cast<char *>(m_model.c_str()));
		if (STREAMING::IS_MODEL_IN_CDIMAGE(model) && STREAMING::IS_MODEL_VALID(model))
		{
			UINT64 *ptr1 = getGlobalPtr(0x28) + 0x27;
			UINT64 *ptr2 = getGlobalPtr(((DWORD)7 << 18) | 0x1890C) + 2;
			UINT64 bcp1 = *ptr1;
			UINT64 bcp2 = *ptr2;
			*ptr1 = *ptr2 = model;			
			WaitAndDraw(1000);
			Ped playerPed = PLAYER::PLAYER_PED_ID();
			PED::SET_PED_VISIBLE(playerPed, TRUE);
			if (ENTITY::GET_ENTITY_MODEL(playerPed) != model)
			{
				*ptr1 = bcp1;
				*ptr2 = bcp2;
			}
		}

But game updata,now can't.

What is "0x28" "0x27" "0x1890C" ?

Posted

Those are global offsets which can be found in the game scripts. I believe that for ptr2 you should now use getGlobalPtr(0x1D890E) + 2, but I did not test it.

Posted
21 hours ago, LMS said:

Those are global offsets which can be found in the game scripts. I believe that for ptr2 you should now use getGlobalPtr(0x1D890E) + 2, but I did not test it.

 

Thank you,Can  you tell me how to get "0x1D890E"?

Posted

It is used in the medium_update script, look for SET_PLAYER_MODEL references.

Posted
On 12/25/2019 at 11:06 AM, LMS said:

It is used in the medium_update script, look for SET_PLAYER_MODEL references.

Thank you very much.

I have other two question:

 - How to change player honor?

 - How to always get perfect pelts when skinning? 

Posted
13 hours ago, Terry13143 said:

Thank you very much.

I have other two question:

 - How to change player honor?

 - How to always get perfect pelts when skinning? 

 

Player honor can be changed using ped decorators, I think Alexander's trainer has an example for this. Perfect pelt cannot be achieved using natives or globals I think.

Posted
6 hours ago, LMS said:

 

Player honor can be changed using ped decorators, I think Alexander's trainer has an example for this. Perfect pelt cannot be achieved using natives or globals I think.

OK,Thank you very much again

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.

×
×
  • Create New...