Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/development' into knight-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
coleminer0112 committed Jun 8, 2022
2 parents a87bfc7 + 81f230d commit 16aa4b7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions vMenu/FunctionsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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);
}
}
}
Expand Down Expand Up @@ -1382,9 +1382,9 @@ private async Task WeaponOptions()
}

// Enable/disable infinite ammo.
if (Game.PlayerPed.Weapons.Current != null && Game.PlayerPed.Weapons.Current.Hash != WeaponHash.Unarmed)
if (IsAllowed(Permission.WPUnlimitedAmmo) && Game.PlayerPed.Weapons.Current != null && Game.PlayerPed.Weapons.Current.Hash != WeaponHash.Unarmed)
{
Game.PlayerPed.Weapons.Current.InfiniteAmmo = MainMenu.WeaponOptionsMenu.UnlimitedAmmo && IsAllowed(Permission.WPUnlimitedAmmo);
Game.PlayerPed.Weapons.Current.InfiniteAmmo = MainMenu.WeaponOptionsMenu.UnlimitedAmmo;
}

if (MainMenu.WeaponOptionsMenu.AutoEquipChute)
Expand Down

0 comments on commit 16aa4b7

Please sign in to comment.