1.1.3 update lua functions

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