Need Help With Police Light Modes

How could I make each one as a separate function? I don't really understand what you mean.