Fix translation + fix setJob

This commit is contained in:
Jérémie N'gadi
2017-09-03 13:54:36 +02:00
parent d37dcb9756
commit b92f0ffebd
2 changed files with 14 additions and 17 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ Locales['fr'] = {
['actions'] = 'actions',
['deposit_amount'] = 'montant du dépôt',
['deposit_society_money'] = 'déposer argent société',
['do_you_want_to_recruit'] = 'Voulez-vous recruter ~g~ ?',
['do_you_want_to_recruit'] = 'Voulez-vous recruter %s ?',
['employee'] = 'employé',
['employee_list'] = 'liste des employés',
['employee_management'] = 'gestion employés',
+13 -16
View File
@@ -153,25 +153,22 @@ ESX.RegisterServerCallback('esx_society:setJob', function(source, cb, identifier
local xPlayer = ESX.GetPlayerFromIdentifier(identifier)
if xPlayer == nil then
MySQL.Async.execute(
'UPDATE users SET job = @job, job_grade = @job_grade WHERE identifier = @identifier',
{
['@job'] = job,
['@job_grade'] = grade,
['@identifier'] = identifier
},
function(rowsChanged)
cb()
end
)
else
if xPlayer ~= nil then
xPlayer.setJob(job, grade)
cb()
end
MySQL.Async.execute(
'UPDATE users SET job = @job, job_grade = @job_grade WHERE identifier = @identifier',
{
['@job'] = job,
['@job_grade'] = grade,
['@identifier'] = identifier
},
function(rowsChanged)
cb()
end
)
end)
ESX.RegisterServerCallback('esx_society:setJobSalary', function(source, cb, job, grade, salary)