From bfc24bd883274ed3cfad066ce340034d7a602c94 Mon Sep 17 00:00:00 2001 From: Freddy <33939455+freedy69@users.noreply.github.com> Date: Wed, 23 Feb 2022 13:42:19 +0400 Subject: [PATCH] Tweak ped pointing 1) Ignore point key on keyboard while text input box is on (currently, if the text input box is enabled and you type B, your ped starts pointing) 2) Changed native hashes to their actual names --- vMenu/FunctionsController.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vMenu/FunctionsController.cs b/vMenu/FunctionsController.cs index 425f160c..b4b58ade 100644 --- a/vMenu/FunctionsController.cs +++ b/vMenu/FunctionsController.cs @@ -964,7 +964,7 @@ async Task TogglePointing() // Press the B button on keyboard once to toggle. else { - if (Game.IsControlJustReleased(0, Control.SpecialAbilitySecondary) && !Game.PlayerPed.IsInVehicle()) + if (Game.IsControlJustReleased(0, Control.SpecialAbilitySecondary) && UpdateOnscreenKeyboard() != 0 && !Game.PlayerPed.IsInVehicle()) { await TogglePointing(); } @@ -979,18 +979,18 @@ async Task TogglePointing() } else { - N_0xd5bb4025ae449a4e(Game.PlayerPed.Handle, "Pitch", GetPointingPitch()); - N_0xd5bb4025ae449a4e(Game.PlayerPed.Handle, "Heading", GetPointingHeading()); - N_0xb0a6cfd2c69c1088(Game.PlayerPed.Handle, "isBlocked", GetPointingIsBlocked()); + SetTaskMoveNetworkSignalFloat(Game.PlayerPed.Handle, "Pitch", GetPointingPitch()); + SetTaskMoveNetworkSignalFloat(Game.PlayerPed.Handle, "Heading", GetPointingHeading()); + SetTaskMoveNetworkSignalBool(Game.PlayerPed.Handle, "isBlocked", GetPointingIsBlocked()); if (GetFollowPedCamViewMode() == 4) { - N_0xb0a6cfd2c69c1088(Game.PlayerPed.Handle, "isFirstPerson", true); + SetTaskMoveNetworkSignalBool(Game.PlayerPed.Handle, "isFirstPerson", true); } else { - N_0xb0a6cfd2c69c1088(Game.PlayerPed.Handle, "isFirstPerson", false); + SetTaskMoveNetworkSignalBool(Game.PlayerPed.Handle, "isFirstPerson", false); } - N_0xd5bb4025ae449a4e(Game.PlayerPed.Handle, "Speed", 0.25f); + SetTaskMoveNetworkSignalFloat(Game.PlayerPed.Handle, "Speed", 0.25f); } } }