Jump to content

Recommended Posts

Posted
public static void PedFunk()
        {
            float heading = RAGE.Elements.Player.LocalPlayer.GetHeading();
            int hashClone = RAGE.Elements.Player.LocalPlayer.Clone(heading, false, false);
            Vector3 clonePos = RAGE.Game.Entity.GetEntityCoords(hashClone, false);
            uint GetHash = RAGE.Game.Misc.GetHashKey("FE_MENU_VERSION_EMPTY");

            RAGE.Chat.Output($"heading: {heading}");
            RAGE.Chat.Output($"GetHash: {GetHash}");
            RAGE.Chat.Output($"hashClone: {hashClone}");
            RAGE.Chat.Output($"clonePos: {clonePos}");
            
            //GetHash = RAGE.Util.Joaat.Hash("FE_MENU_VERSION_EMPTY_NO_BACKGROUND");
            RAGE.Game.Ui.SetFrontendActive(true);
            RAGE.Game.Ui.ActivateFrontendMenu(GetHash, false, -1);
            RAGE.Game.Invoker.Invoke(0xB8A850F20A067EB6, 67, 67);
            //RAGE.Game.Invoker.Invoke<bool>(RAGE.Game.Natives.ActivateFrontendMenu, GetHash, 0, -1);
            RAGE.Game.Invoker.Invoke(RAGE.Game.Natives._0x98215325A695E78A, 0);
            RAGE.Game.Utils.Wait(100);

            RAGE.Game.Entity.SetEntityCoords(hashClone, clonePos.X, clonePos.Y, clonePos.Z - 10f, false, false, false, true);
            RAGE.Game.Entity.FreezeEntityPosition(hashClone, true);
            RAGE.Game.Entity.SetEntityVisible(hashClone, false, false);
            RAGE.Game.Network.NetworkSetEntityVisibleToNetwork(hashClone, false);
            RAGE.Game.Utils.Wait(200);
            RAGE.Game.Entity.SetPedAsNoLongerNeeded(ref hashClone);


            RAGE.Game.Ui.GivePedToPauseMenu(hashClone, 2);
            RAGE.Game.Invoker.Invoke(0x98215325a695e78a, 0);

            RAGE.Game.Invoker.Invoke(0x3CA6050692BC61B0, 1);
            RAGE.Game.Invoker.Invoke(0xECF128344E9FF9F1, 1);
            RAGE.Chat.Output("Show");
        }

What is dont work?

  • 2 weeks later...
Posted (edited)

After cloning PED, you need to invoke GIVE_PED_TO_PAUSE_MENU0xAC0BFBDC3BE00E14

Edited by Kopra

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...