From 330fb4527b0ddb40f0498ea65dcde6c2db20416d Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 8 Jul 2018 15:33:13 +0200 Subject: [PATCH] Fixed exploit dupe throw in vehicles, closes #101 --- client/functions.lua | 4 ++++ 1 file changed, 4 insertions(+) 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))