addFunctionToLua