Skip to content

Commit

Permalink
Update vMenu/FunctionsController.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher M. <10535902+cm8263@users.noreply.github.com>
  • Loading branch information
IS4Code and cm8263 authored Feb 10, 2022
1 parent e6fa739 commit ba29907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vMenu/FunctionsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ private async Task WeaponOptions()
}

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

0 comments on commit ba29907

Please sign in to comment.