erreur esx_society

Bonjour a tous j’ai un probleme avec society, je m’explique, quand je me setjob tout va bien tout fonctionne nikel mais par contre quand je vais dans le bureau du patron et que je souhaite ouvrir la liste des employers j’ai l’erreur : [ script:esx_society] SCRIPT ERROR: @esx_society/server/main.lua:234: attempt to index a nil value (field ‹ ? ›) [ script:esx_society] > ref (@esx_society/server/main.lua:234) [ script:esx_society] > (@mysql-async/mysql-async.js:15543)

la ligne 234 corresponds a ca : (debut a la ligne 219 jusqu’a 270) ESX.RegisterServerCallback(‹ esx_society:getEmployees ›, function(source, cb, society)

if Config.EnableESXIdentity then

MySQL.Async.fetchAll(

  'SELECT * FROM users WHERE job = @job ORDER BY job_grade DESC',

  { ['@job'] = society },

  function (results)

    local employees = {}

    for i=1, #results, 1 do

      table.insert(employees, {

        name        = results[i].firstname .. ' ' .. results[i].lastname,

        identifier  = results[i].identifier,

        job = {

          name        = results[i].job,

          label       = Jobs[results[i].job].label,

          grade       = results[i].job_grade,

          grade_name  = Jobs[results[i].job].grades[tostring(results[i].job_grade)].name,

          grade_label = Jobs[results[i].job].grades[tostring(results[i].job_grade)].label,

        }

      })

    end

    cb(employees)

  end

)

else

MySQL.Async.fetchAll(

  'SELECT * 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,

        identifier  = result[i].identifier,

        job = {

          name        = result[i].job,

          label       = Jobs[result[i].job].label,

          grade       = result[i].job_grade,

          grade_name  = Jobs[result[i].job].grades[tostring(result[i].job_grade)].name,

          grade_label = Jobs[result[i].job].grades[tostring(result[i].job_grade)].label,

        }

      })

    end

    cb(employees)

  end

)

end

end)

La ligne 234 =

label = Jobs[results[i].job].label,