[Bug] Deferrals.done throws msgpack error #78
Mathu-lmn
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 2 comments 9 replies
|
Did you waited at least 1 tick after deferrals.defer() call before calling deferrals.done()? AFAIK you need to wait 1 tick after the defer() call, I do that and both presentCard, update and done methods work as expected for me (in nodejs at least). |
5 replies
|
I tested the fix provided by the CFX Team (#127) and we still have the issue on the latest server binary (https://downloads.cfx-services.net/prod/019f8a75-b0f4-7dfc-8ac6-4dce4292da4a/cfx-server_linux_x64.tar.xz)
|
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Using _deferrals.done('randomstring') in a AddEventHandler("playerConnecting" throws a msgpack_unpack error.
Issue type
Server
Repro rate
Always
Server build version
92
Steps to Reproduce
Have a script that does a def.done('randomstring') and see the error in your server console
Expected Behavior
Don't error and actually throw the error in the player def card
Actual Behavior
All reactions