To complete the event passed (lua version)