At the engine level, as I understand, scripts are loaded into a rage::scrProgram that contains things like its opcodes, statics, strings, globals, and natives. Many interesting things are loaded into the globals so I’m wondering if there’s a way for resources in RedM to access them and to expose them for resources?
Someone here was researching them: GitHub - Halen84/RDR3-Script-Global-Research: Contains lots of information about script globals such as names, members, what they do, and where they can be located in the scripts.