Hello guys, at the moment I’m working on a JS whitelist resource (actually the whitelist is part of a bigger resource). The way it works right now is by checking if the player is whitelisted in the database on playerconnecting. Now, if the player is whitelisted everything is ok, but if the player is not whitelisted this line of code gets executed:
deferrals.done("You are not Whitelisted.");
and this error appears in the console while the player is stuck in a deffer screen while connecting.
InvokeNative: execution failed: No current resource manager.
Uncaught Error: BUFFER_SHORTAGE
citizen:/scripting/v8/msgpack.js(29,12766): e
citizen:/scripting/v8/msgpack.js(29,15761): h
citizen:/scripting/v8/msgpack.js(29,13908): r
citizen:/scripting/v8/msgpack.js(29,6972): n.fetch
citizen:/scripting/v8/msgpack.js(29,12076): u
citizen:/scripting/v8/msgpack.js(29,7097): n
citizen:/scripting/v8/main.js(20,33): unpack
citizen:/scripting/v8/main.js(51,11):
server/basic-functions-sv.js(51,17): isPlayerWhitelistedFunction
server/basic-functions-sv.js(71,13):
Error: BUFFER_SHORTAGE
What is there to do? Right now I dont really have any idea on how this can be fixed.
Thanks in advance!