I have a question to propose to the community. I have seen in some resources that are available that use exported functions but they are not declared as exports in the fxmanifest. I know that they have to be declared somewhere in the code. I have seen some being declared in the main body of the code but those are basic exports that are called using Resource:function(vars) not exports.Resource.function(vars) I know I can put a local Resource = exports[‘Resource’] at the top of my script but the ones I have seen offering the exports as Resource:funciton(vars) do not have to have us declare that there. Any thoughts on how this is done? Am I just not looking in the right place for my answer? IDK. Thanks in advance for any help.
In Lua/JS, you can use exports('exportName', function() to define a new export from code.
See the relevant heading in the docs as well.
Thanks for getting back to me! I did see that as well but that function still does not provide the export as Resource:function(vars), it still requires the exported function to be called with exports.Resource:function(vars). Its really weird.