whenever i load onto my server the loading screen comes on and it this happens and it never loads the error in console is: Error: Unhandled error in timer: Error: BUFFER_SHORTAGE
Error: BUFFER_SHORTAGE
at n.e [as reserve] (citizen:/scripting/v8/msgpack.js:29:12766)
at h (citizen:/scripting/v8/msgpack.js:29:15761)
at n.r [as decode] (citizen:/scripting/v8/msgpack.js:29:13908)
at n.fetch (citizen:/scripting/v8/msgpack.js:29:6972)
at n.u [as read] (citizen:/scripting/v8/msgpack.js:29:12076)
at Object.n [as decode] (citizen:/scripting/v8/msgpack.js:29:7097)
at unpack (citizen:/scripting/v8/main.js:20:33)
at citizen:/scripting/v8/main.js:51:20
at setImmediate (mysql-async.js:5140:7)
at Object.callback (citizen:/scripting/v8/timer.js:96:21)
1 Like
some of ur resource is broken, Might be a loadingscreen? try to see f8 console if anything gives errors
Nah I press f8 nothing says error and I downloaded new files of fivem and still tried and nothing happened
Without plugins
Check if every citizen thread in your scripts has got Citizen.Wait(0) if it is a loop ((not necessary a 0)).
I don’t understand what u mean could u explain more detail?
Citizen.CreateThread(function()
while true do
Citizen.Wait(0) -- THIS IS CRUCIAL !!!
--rest of the code
end
end)
For example. If you don’t put Citizen.Wait(0) in each of your threads (mostly if there is a loop) the game will just freeze on server enter.
Where do I find this file?
1 Like
It’s nearly in every of your client.lua scripts.
1 Like