Kod:
RegisterServerEvent('esx_lumberjack:processo')
AddEventHandler('esx_lumberjack:processo', function()
local xPlayer = ESX.GetPlayerFromId(source)
local xItem = xPlayer.getInventoryItem('wood')
if xItem.limit ~= 1 and (xItem.count + 1) > xItem.limit then
xPlayer.addInventoryItem('wood', 6)
--TriggerClientEvent('esx:showNotification', source, 'Inventario Pieno')
else
xPlayer.addInventoryItem(xItem.name, 3)
end
end)