1.1.3 update lua functions

I think I added them all correctly. Took changes from link you provided