check if function has been called lua code example Example: How to connect a function in LUA (connect(function)