- Katılım
- 4 yıl 5 ay 15 gün
- Mesajlar
- 368
if itemCount > 0 and sourceXPlayer.getAccount(itemName).money >= itemCount then
sourceXPlayer.removeMoney(itemName, itemCount)
targetXPlayer.addMoney (itemName, itemCount)
TriggerClientEvent('esx:showNotification', _source, _U('gave_account_money', ESX.Math.GroupDigits(itemCount), Config.AccountLabels[itemName], targetXPlayer.name))
TriggerClientEvent('esx:showNotification', target, _U('received_account_money', ESX.Math.GroupDigits(itemCount), Config.AccountLabels[itemName], sourceXPlayer.name))
else
TriggerClientEvent('esx:showNotification', _source, _U('imp_invalid_amount'))
end
kod satırında es_extended/server/main.lua:319: attempt to index a nil value hatası alıoyorum para verirken sorunu nasıl çözebilirim
sourceXPlayer.removeMoney(itemName, itemCount)
targetXPlayer.addMoney (itemName, itemCount)
TriggerClientEvent('esx:showNotification', _source, _U('gave_account_money', ESX.Math.GroupDigits(itemCount), Config.AccountLabels[itemName], targetXPlayer.name))
TriggerClientEvent('esx:showNotification', target, _U('received_account_money', ESX.Math.GroupDigits(itemCount), Config.AccountLabels[itemName], sourceXPlayer.name))
else
TriggerClientEvent('esx:showNotification', _source, _U('imp_invalid_amount'))
end
kod satırında es_extended/server/main.lua:319: attempt to index a nil value hatası alıoyorum para verirken sorunu nasıl çözebilirim