NUI/DUI UI Injection

This page will cover injection into the NUI/DUI global state. This is not V8 scripting, this will allow you to easily interact with UI pages from Macho.

MachoInjectJavaScript([string] code) -> void

This will inject your JavaScript into the Chromium Embedded Framework which is used to run UI pages on FiveM.

Example:
MachoInjectJavaScript([[ console.log("Hello World"); ]])