diff --git a/locales/en.lua b/locales/en.lua index 0c17646c..46667262 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -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!' } diff --git a/locales/sv.lua b/locales/sv.lua index ca0cc040..c5394337 100644 --- a/locales/sv.lua +++ b/locales/sv.lua @@ -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' } diff --git a/server/main.lua b/server/main.lua index 0c059a8e..148fbc6c 100644 --- a/server/main.lua +++ b/server/main.lua @@ -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)