Using a file from a dependency resource without re-running it

I know you can ‘import’ a file from another resource for use adding '@other_resource_name/file.lua' to your resource’s fxmanifest client or server scripts section, but I noticed the script is actually being re-run if you do that.

Is there a way to import it so you can still access the variables and functions in an external resource file without that re-run happening?

Look into “exports”

From what I see, exports need to be declared in the outside resource, so if that resource’s authors didn’t export anything, I can’t use them.

Or is there something else about them that I’m missing?