Update Multi-Language Support

This commit is contained in:
nearbyplayer
2017-09-03 15:36:57 -04:00
parent a9c4c3e342
commit 73bd5539b0
4 changed files with 23 additions and 11 deletions
+5 -5
View File
@@ -6,7 +6,7 @@ if Config.MaxInService ~= -1 then
TriggerEvent('esx_service:activateService', 'police', Config.MaxInService)
end
TriggerEvent('esx_phone:registerNumber', 'police', _('alert_police'), true, true)
TriggerEvent('esx_phone:registerNumber', 'police', _U('alert_police'), true, true)
RegisterServerEvent('esx_policejob:giveWeapon')
AddEventHandler('esx_policejob:giveWeapon', function(weapon, ammo)
@@ -77,10 +77,10 @@ AddEventHandler('esx_policejob:getStockItem', function(itemName, count)
inventory.removeItem(itemName, count)
xPlayer.addInventoryItem(itemName, count)
else
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Quantité invalide')
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('quantity_invalid'))
end
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Vous avez retiré x' .. count .. ' ' .. item.label)
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('have_withdrawn') .. count .. ' ' .. item.label)
end)
@@ -99,10 +99,10 @@ AddEventHandler('esx_policejob:putStockItems', function(itemName, count)
xPlayer.removeInventoryItem(itemName, count)
inventory.addItem(itemName, count)
else
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Quantité invalide')
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('quantity_invalid'))
end
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Vous avez ajouté x' .. count .. ' ' .. item.label)
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('added') .. count .. ' ' .. item.label)
end)