Do you mean how to use multiple Lua script files to make an app ?
You can read this for an introduction : [Login to see the link]
Modules are just separated Lua files that can be imported with the require() function.
A module can return a value, generaly a table that contains the module that will be returned by the require() function.
i cant require it it just looks for it in the lua modules folder in lua studio
Where is located the Lua module you want to require ?
Samir my utils fine is in the same folder my main.lua is
Ok I've found what's going on.
In LuaRT Studio, the project path (the folder you see in the "Project" pane on the left) is where your current Lua files are searched when calling require()
One way to require for module mymodule.lua is to call require(path.to.the.folder.mymodule)
Powered byFreeFlarum.(remove this footer)