Post from the context of a resource via the root dom node in FiveM
Work in progress!
Brief breakdown;
- Access the resource’s iframe (each resources has an iframe that exists in the root dom node)
- Inject a script tag containing a post function and any other functions you’d like to be ran in the context of the resource.
- Call the function via the iframe’s window instance.