since it’s above and beyond customary work duties, you’d expect extra compensation of some kind to have you refrain from projects unrelated to the job. there are some exceptions of course. security-related government workers could be subject to extra restrictions without extra compensation, for example.