You can simply replace "SetEntityInteractionDisabled("lever_"+i, false);" with:
SetEntityInteractionDisabled("lever_1", false);
SetEntityInteractionDisabled("lever_2", false);
SetEntityInteractionDisabled("lever_3", false);
SetEntityInteractionDisabled("lever_4", false);
And then replace "SetLeverInteractionDisablesStuck("lever_"+x, true);" with:
SetLeverInteractionDisablesStuck("lever_1", true);
SetLeverInteractionDisablesStuck("lever_2", true);
SetLeverInteractionDisablesStuck("lever_3", true);
SetLeverInteractionDisablesStuck("lever_4", true);
That's what each one does. It's just compact to not take up a lot of space. Alright? Good.