You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be noted that this will happen if you return any invalid data during any of this, this entire section expects the end user to never send any invalid data via the callback.
This is a "raw callback" you're expected to return an empty table if you don't want to return anything, or a table with this kind of structure
structRequestCallback{// optional, doesn't have to be set// headers to set for the call backArray<(string,string)>headers;// alternate to returning an arrayIDictionary<string,string>headers;// optional, doesn't have to be set// the status code intstatus;// optional, doesn't have to be set// the data to returnstringbody;}
What happened?
I discovered that if you pass empty string to callback function, it will cause game crash.
Video
LUA Code:
NUI JS Code
Expected result
Callback data should be properly packed
Reproduction steps
Importancy
Crash
Area(s)
Natives
Specific version(s)
FiveM: 9837 Server: 9481 Windows
Additional information
No response
The text was updated successfully, but these errors were encountered: