mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
fix give_ammo, mistake from fixed #633
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user