mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 01:38:52 +00:00
add menu.close()
This commit is contained in:
@@ -940,7 +940,10 @@ ESX.ShowInventory = function()
|
||||
elseif data.current.action == 'remove' then
|
||||
|
||||
if type == 'item_weapon' then
|
||||
|
||||
TriggerServerEvent('esx:removeInventoryItem', type, item, 1)
|
||||
menu.close()
|
||||
|
||||
else
|
||||
|
||||
ESX.UI.Menu.Open(
|
||||
|
||||
@@ -479,8 +479,7 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount)
|
||||
|
||||
elseif type == 'item_weapon' then
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local weaponLabel = itemName
|
||||
local weaponName = nil
|
||||
local weaponPickup = nil
|
||||
|
||||
Reference in New Issue
Block a user