mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 14:01:31 +00:00
Added message to reciver...
when the target player doesn't have enough money to pay the bill
This commit is contained in:
+1
-1
@@ -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
@@ -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'
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user