i hope you didn't serve the army because if you did, you would not ask such question.
If you did serve the Army, everyone knows the
SAF Core Value:-
"Whatever you do, just don't get caught."
Jokes aside.
I think Government Civil Servants are NOT allowed to do Freelance Assignments/Jobs after office hours. There might be a conflict of interest. I'm not entirely certain, so i might be wrong.
Just my 2 cents.