creating a function in lua code example
Example 1: lua function
--// Basic Function
function PrintingText()
print("My text here")
end
PrintingText()
Example 2: lua parameters function
--// LUA basic function parameter
function BasicParameter(text)
print(text)
end
BasicParameter("My Text Here")