fix give_ammo, mistake from fixed #633

This commit is contained in:
Satria Adhi
2020-05-16 19:43:30 +07:00
parent 493b5c1fd0
commit a62890cc56
+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