Fixed exploit dupe throw in vehicles, closes #101

This commit is contained in:
ElPumpo
2018-07-08 15:33:13 +02:00
parent a0fc21dc7f
commit 330fb4527b
+4
View File
@@ -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))