Adaptive Cards in deferrals

Originally published at: https://cookbook.fivem.net/2019/06/29/adaptive-cards-in-deferrals/

We’ll be writing some more documentation on this soon, but the latest server version (combined with the canary client at this time – no prod yet!) supports presenting Adaptive Cards to clients during deferrals. Here’s a quick code sample: AddEventHandler(‘playerConnecting’, function(name, skr, d) d.defer() Wait(50) – badly serialized JSON in a string, from the Adaptive…

6 Likes

Have some docs already?

I’ve been playing with this but experienced a lot of intermittent end of file errors yet my JSON files were valid to the examples provided by the Microsoft side that was in the post.

The “badly serialized” json needs to be explained more so documents would be grand right now as valid JSON causes a lot of errors.