if targetXPlayer.canCarryItem(itemName, itemCount) then
sourceXPlayer.removeInventoryItem(itemName, itemCount)
targetXPlayer.addInventoryItem (itemName, itemCount)
sourceXPlayer.showNotification(_U('gave_item', itemCount, sourceItem.label, targetXPlayer.name))
targetXPlayer.showNotification(_U('received_item', itemCount, sourceItem.label, sourceXPlayer.name))
local data = {
['Player'] = sourceXPlayer.source,
['Target'] = targetXPlayer.source,
['Log'] = 'inventorius',
['Title'] = 'Dave itema is inventoriaus', -- Title
['Message'] = '**Koki itema dave: **``' .. sourceItem.label .. '``\n**Kiekis: ** ``' .. itemCount .. '``',
['Color'] = 'blue',
}
TriggerEvent('Boost-Logs:SendLog', data)
else
sourceXPlayer.showNotification(_U('ex_inv_lim', targetXPlayer.name))
end
sourceXPlayer.removeInventoryItem(itemName, itemCount)
targetXPlayer.addInventoryItem (itemName, itemCount)
sourceXPlayer.showNotification(_U('gave_item', itemCount, sourceItem.label, targetXPlayer.name))
targetXPlayer.showNotification(_U('received_item', itemCount, sourceItem.label, sourceXPlayer.name))
local data = {
['Player'] = sourceXPlayer.source,
['Target'] = targetXPlayer.source,
['Log'] = 'inventorius',
['Title'] = 'Dave itema is inventoriaus', -- Title
['Message'] = '**Koki itema dave: **``' .. sourceItem.label .. '``\n**Kiekis: ** ``' .. itemCount .. '``',
['Color'] = 'blue',
}
TriggerEvent('Boost-Logs:SendLog', data)
else
sourceXPlayer.showNotification(_U('ex_inv_lim', targetXPlayer.name))
end
Ziyaretçiler için gizlenmiş link, görmek için
Giriş yap veya üye ol.
Ziyaretçiler için gizlenmiş link, görmek için
Giriş yap veya üye ol.