I created that function, it doesn't exist by default. If you need to create your own functions to organize your code, you can do it.
function yourFunctionName(parameter1, parameter2 .. etc)
-- your code here
end
Yes, there is: otland/forgottenserver...