DaVilka Posted May 24, 2021 Posted May 24, 2021 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?
Kopra Posted June 3, 2021 Posted June 3, 2021 (edited) After cloning PED, you need to invoke GIVE_PED_TO_PAUSE_MENU( 0xAC0BFBDC3BE00E14 ) Edited June 3, 2021 by Kopra
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now