Terry13143 2 Posted December 23, 2019 Share Posted December 23, 2019 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" ? Quote Link to comment Share on other sites More sharing options...
LMS 674 Posted December 23, 2019 Share Posted December 23, 2019 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. Quote Link to comment Share on other sites More sharing options...
Terry13143 2 Posted December 24, 2019 Author Share Posted December 24, 2019 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"? Quote Link to comment Share on other sites More sharing options...
LMS 674 Posted December 25, 2019 Share Posted December 25, 2019 It is used in the medium_update script, look for SET_PLAYER_MODEL references. Quote Link to comment Share on other sites More sharing options...
Terry13143 2 Posted December 30, 2019 Author Share Posted December 30, 2019 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? Quote Link to comment Share on other sites More sharing options...
LMS 674 Posted December 30, 2019 Share Posted December 30, 2019 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. Quote Link to comment Share on other sites More sharing options...
Terry13143 2 Posted December 31, 2019 Author Share Posted December 31, 2019 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.