(Official) LUA Scripting Documentation
require
Load a library.
Spec:
require(
string name)
Parameters
name
: The name of the library
Returns
ref
: A reference to the library
Examples
local lib = require("my_lib")
lib.hello()
And below is the library code in ‘library\my_lib_lua’
local lib = { }
function lib.hello()
print("hello")
end
return lib
Incomplete
This documentation is incomplete