mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 18:58:54 +00:00
Fix translation + fix setJob
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user