mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
Fixed exploit dupe throw in vehicles, closes #101
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user