Craig Martin

(Official) LUA Scripting Documentation

require

Load a library.


Spec:

require(
	string name)

Parameters

Returns


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


back