For the sake of clean code, I loaded the Lua scripts like this
Code:
<OnLoad>
<Script file="luascript.lua"/>
self:CreateList(self,total)
</OnLoad>
In this file I have set the custom methods but it keeps giving me this error:
attempt to call method 'CreateList' (a nil value)