self.addInventoryItem = function(name, count)
local player = ESX.GetPlayerFromIdentifier(self.identifier)
if player.canCarryItem(name, count) then
local item = self.getInventoryItem(name)
local newCount = item.count + count
item.count = newCount
--if name == 'cash' then
-- self.player.addMoney(count)
-- end
TriggerEvent('esx:onAddInventoryItem', self.source, item, count)
TriggerClientEvent('esx:AddInventoryItem', self.source, item, count)
else
TriggerClientEvent('mythic_notify:client:SendAlert', self.source, { type = 'inform', text = 'Bunu taşıyamam çok ağır', lenght = 4000 })
end
end