no.
That not how things work.
If you do get confused with metatable OOP you can use alternative (that would be better in your case)
Just dont use : when declearing function becouse it creates unneeded (in your case) argument.
Could you please show where you call this function?
That could be the reason as to why it errors