SCRIPT ERROR: @es_extended/server/main.lua:161: attempt to index a nil value (field '?')

im stuck on awiting sripts and im getting this issue on my server console

  1. SCRIPT ERROR: @es_extended/server/main.lua:161: attempt to index a nil value (field ‘?’)

I have the same erorr,
and I have no clue

SCRIPT ERROR: @es_extended/server/main.lua:320: attempt to index a nil value (local 'xPlayer')
> handler (@es_extended/server/main.lua:320)
> routeMessage (@chat/sv_chat.lua:187)
> handler (@chat/sv_chat.lua:218)

This means some plugin you have installed is trying to access a variable that is equal to nothing when it should be for example a player, if you are developing a plugin, send your code and I can take a look, if not it is a plugin you probably recently installed that is incorrectly configured or you do not have the right dependencies. Alma_dev, in your case, the chat plugin in the sv_chat.lua file on line 187 is calling function “routeMessage”, which then trys to find a player and fails to do so, this is most likely a code issue.

What version of ESX are you running?