[help] Error essentialmode getPlayerFromId

hello ! i have this error at the login on the serveur :

the code at line 129

AddEventHandler("es:getPlayerFromId", function(user, cb)
	if(Users)then
		if(Users[user])then
			cb(Users[user])
		else
			cb(nil)
		end
	else
		cb(nil)
	end
end)

up, if you have a fix ^^

hii, You have found the solution ??

nop :confused: sorry !

Generally this error is caused by the callback for the event. For example

TriggerEvent("es:getPlayerFromId", id, function(user)
    -- Some error
end)

If you have an error in the callback (where the comment -- Some error is) then you will get this error.

  TriggerEvent('es:getPlayerFromId', source,
    function(user)
      local executed_query = MySQL:executeQuery("SELECT identifier, job_id, job_name FROM users LEFT JOIN jobs ON jobs.job_id = users.job WHERE users.identifier = '@identifier' AND job_id IS NOT NULL", {['@identifier'] = user.identifier})
      local result = MySQL:getResults(executed_query, {'job_id'}, "identifier")
      print("ID JOB TEST : " ..result[1].job_id)
      if (result[1] ~= nil) then
        jobId = result[1].job_id
      end
    end
  )

I have this error with this for exemple

hi I have this problem can you help me please ?

Seems to be a common issue, Me and other people have this error too. Found no fix for it.

Hello, can you help us to resolve that error please?