I doubt any agency allows officers to "moonlight" in uniform. I'd also bet that most do not allow "moonlighting" at all. When you see an officer at an event I am pretty sure they are on duty and the event organizer is paying the department for them to be there.