mtasa-resources icon indicating copy to clipboard operation
mtasa-resources copied to clipboard

Unwanted behavior when sending lua userdata to resource web access

Open stoneage-mta opened this issue 3 years ago • 1 comments

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

stoneage-mta avatar Feb 13 '22 07:02 stoneage-mta

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

4O4 avatar Apr 07 '22 10:04 4O4