Posted December 23, 20195 yr 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" ?
December 23, 20195 yr 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.
December 24, 20195 yr Author On 12/23/2019 at 3:18 PM, 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"?
December 30, 20195 yr Author On 12/25/2019 at 3: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?
December 30, 20195 yr On 12/30/2019 at 6:14 AM, 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.
December 31, 20195 yr Author On 12/30/2019 at 7:23 PM, 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.