Added message to reciver...

when the target player doesn't have enough money to pay the bill
This commit is contained in:
ElPumpo
2018-02-22 17:37:15 +01:00
parent 2cd9cd1d6d
commit 93daf17c9a
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -1,9 +1,9 @@
Locales['en'] = {
['invoices'] = 'invoices',
['received_invoice'] = 'you have just ~r~received~s~ an invoice',
['paid_invoice'] = 'you ~g~paid~s~ an invoice of ~r~$',
['received_payment'] = 'you ~g~received~s~ a payment of ~r~$',
['player_not_logged'] = 'the player is not logged in',
['no_money'] = 'you do not have enough money to pay this bill',
['target_no_money'] = 'The player ~r~does not~w~ have enough money to pay the bill!'
}
+5 -4
View File
@@ -1,8 +1,9 @@
Locales['sv'] = {
['invoices'] = 'räkningar',
['received_invoice'] = 'du har ~r~mottagit~s~ en räkning',
['paid_invoice'] = 'du ~g~betalade~s~ precis en räkning på ~g~$',
['received_payment'] = 'u har ~g~mottagit~s~ en räkning på ~g~$',
['received_invoice'] = 'du har ~y~mottagit~s~ en räkning',
['paid_invoice'] = 'du ~y~betalade~w~ precis en räkning på ~g~$',
['received_payment'] = 'du har ~y~mottagit~w~ en räkning på ~g~$',
['player_not_logged'] = 'spelaren är inte online',
['no_money'] = 'du har inte råd för att betala räkningen',
['no_money'] = 'du har ~r~inte råd~w~ för att kunna betala räkningen',
['target_no_money'] = 'Spelaren har ~r~inte råd~w~ för att betala räkningen'
}
+3
View File
@@ -184,6 +184,9 @@ ESX.RegisterServerCallback('esx_billing:payBill', function(source, cb, id)
end)
else
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('no_money'))
if foundPlayer ~= nil then
TriggerClientEvent('esx:showNotification', foundPlayer.source, _U('target_no_money'))
end
end
end)