Merge pull request #751 from xtrsyz/master

fix give_ammo, mistake from fixed #633
This commit is contained in:
Jérémie N'gadi
2020-05-22 11:32:43 +02:00
committed by GitHub
+1
View File
@@ -961,6 +961,7 @@ ESX.ShowInventory = function()
ESX.ShowInventory()
elseif data1.current.action == 'give_ammo' then
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
local closestPed = GetPlayerPed(closestPlayer)
local pedAmmo = GetAmmoInPedWeapon(playerPed, GetHashKey(item))
if IsPedOnFoot(closestPed) and not IsPedFalling(closestPed) then