mtasa-resources
mtasa-resources copied to clipboard
Unwanted behavior when sending lua userdata to resource web access
Describe the bug
If you pass a resource userdata like getResourceFromName("acpanel") javascript receives {name: "acpanel"}, if you call getRootElement() javascript receives {id: "1"} and that broke some resources, see #379, and #358.
Version MTA:SA Server v1.5.9-release-21129
Additional context I have a server running version 1.5.8-release-20668 and it is working normally. See Arran's comment and this commit in mtasa-resources repo
This is not an mtasa-blue issue, as the root cause is in ajax resource. Will be fixed via https://github.com/multitheftauto/mtasa-resources/pull/383