Jump to content
RAGE Multiplayer Community

Ped for Pause Menu


DaVilka
 Share

Recommended Posts

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?

Link to comment
Share on other sites

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...