Hello,
For a few days my server has been showing me a console error that I can’t fix and yet I have been looking everywhere but no help corresponds to my problem.
This is the error i have in my console:
SCRIPT ERROR: citizen:/scripting/lua/MessagePack.lua:862: extra bytes
> TriggerServerCallback (@es_extended/server/functions.lua:33)
> handler (@es_extended/server/common.lua:88)
This error occurs when a player connects to the server, he does not load and is directly in NPC.
With some research, here is what emerges from the error codes
SCRIPT ERROR: citizen:/scripting/lua/MessagePack.lua:862: extra bytes
function m.unpack (s)
checktype('unpack', 1, s, 'string')
local cursor = cursor_string(s)
local data = unpackers['any'](cursor)
if cursor.i < cursor.j then
error "extra bytes"
end
return data
end
TriggerServerCallback (@es_extended/server/functions.lua:33)
ESX.TriggerServerCallback = function(name, requestId, source, cb, ...)
if ESX.ServerCallbacks[name] ~= nil then
ESX.ServerCallbacks[name](source, cb, ...)
else
print('es_extended: TriggerServerCallback => [' .. name .. '] does not exist')
end
end
handler (@es_extended/server/common.lua:88)
RegisterServerEvent('esx:triggerServerCallback')
AddEventHandler('esx:triggerServerCallback', function(name, requestId, ...)
local playerId = source
ESX.TriggerServerCallback(name, requestID, playerId, function(...)
TriggerClientEvent('esx:serverCallback', playerId, requestId, ...)
end, ...)
end)
Video #1: https://streamable.com/hqg90
Video #2: https://streamable.com/lm1xx
This error appears randomly, sometimes after 3 or 4 players on the server, it is not always the same player who spawns in NPC and for me, it is certainly linked to a job but I can’t find anything.
If necessary, I can upload my jobs.sql / job_grades.sql and users.sql table.
If someone can help me, it would be very nice!
Thank you in advance.
Twikii