Jump to content
View in the app

A better way to browse. Learn more.

RDR2Mods.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi, I was trying to change player model using this code:

Capture.PNG.89099eda89dfceb1fa3bd95f459955f1.PNG

It works for a few frames but after that it keeps switching back to its original model.

How can I fix this issue?

You are doing everything correctly, but the model change is detected by a game script and reverted. I think it is medium_update, but not entirely sure. A common way to solve this is to set the global that holds the model the player is supposed to have to your new model, so that the game does not detect any change. Below you can find an example from Alexander Blade's trainer. Please note that the global is outdated, however, and I doubt it works on the current version. You would find a more up to date script with the current version of look through the decompiled medium_update source yourself to locate the new global address.

 

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;
    }
}

 

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...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.