Latest ESX code.

Prior versions of ESX when essentialmode was a requirement had a `name` column in the `users` table, which is now outdated.
This commit is contained in:
Yulian Ivanov
2020-07-19 12:31:42 +01:00
committed by GitHub
parent b0b7a8157f
commit ca38c6c16f
+2 -2
View File
@@ -192,14 +192,14 @@ ESX.RegisterServerCallback('esx_society:getEmployees', function(source, cb, soci
cb(employees)
end)
else
MySQL.Async.fetchAll('SELECT name, identifier, job, job_grade FROM users WHERE job = @job ORDER BY job_grade DESC', {
MySQL.Async.fetchAll('SELECT identifier, job, job_grade FROM users WHERE job = @job ORDER BY job_grade DESC', {
['@job'] = society
}, function (result)
local employees = {}
for i=1, #result, 1 do
table.insert(employees, {
name = result[i].name,
name = GetPlayerName(source),
identifier = result[i].identifier,
job = {
name = result[i].job,