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