diff --git a/client/functions.lua b/client/functions.lua index fa800d0c..60480661 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -1247,6 +1247,10 @@ ESX.ShowInventory = function() elseif data.current.action == 'remove' then + if IsPedSittingInAnyVehicle(playerPed) then + menu.close() + end + if type == 'item_weapon' then local pedAmmo = GetAmmoInPedWeapon(GetPlayerPed(-1),GetHashKey(item))