Ok, not too sure about the gang stuff but you’ve got this script (which you can modify) for on and off duty functions.
ESX_DUTY