Allow for disabling luaevent as it may not work everywhere.