Scripting require file

I’m trying to write a bunch of scripts, and I’d like to have a common lua file with some useful functionality that I can require from multiple of my scripts rather than having to duplicate code in each script.

Is this possible somehow?

It looks like LUA_PATH is not set, if it was set to the scripts directory that would probably make things easier.

1 Like

Alternatively a way to expose multiple scripts from the same lua file would be great, then I could keep a bunch of functionality grouped together, if getClientInfo could return an array of functions.