From ba29907aeaf68f1c7acb30168cc41e63fc7b70ce Mon Sep 17 00:00:00 2001 From: IS4 Date: Thu, 10 Feb 2022 02:17:01 +0100 Subject: [PATCH] Update vMenu/FunctionsController.cs Co-authored-by: Christopher M. <10535902+cm8263@users.noreply.github.com> --- vMenu/FunctionsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vMenu/FunctionsController.cs b/vMenu/FunctionsController.cs index a28741ff..c9839d4e 100644 --- a/vMenu/FunctionsController.cs +++ b/vMenu/FunctionsController.cs @@ -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; }