(a)It is unlawful to willfully fail or refuse to comply with a lawful order, signal, or direction of a peace officer, as defined in Chapter 4.5 (commencing with Section 830) of Title 3 of Part 2 of the Penal Code, when that peace officer is in uniform and is performing duties pursuant to any of the provisions of this code, or to refuse to submit to a lawful inspection pursuant to this code.
(b)Except as authorized pursuant to Section 24004, it is unlawful to fail or refuse to comply with a lawful out-of-service order issued by an authorized employee of the Department of the California Highway Patrol or by a uniformed peace officer, as defined in Chapter 4.5 (commencing with Section 830) of Title 3 of Part 2 of the Penal Code, when that peace officer or authorized employee is performing duties pursuant to any provision of this code and the out-of-service order complies with Section 395.13 or 396.9 of Title 49 of the Code of Federal Regulations.
(c)It is unlawful to fail or refuse to comply with a lawful out-of-service order issued by the United States Secretary of the Department of Transportation.
(d)It is unlawful to fail or refuse to comply with a lawful out-of-service order issued by a peace officer or commercial vehicle inspector, of any state, any Province of Canada, or the Federal Government of the United States, Canada, or Mexico, when that peace officer or commercial vehicle inspector is in uniform and is performing duties under any provisions of state, provincial, federal, or Mexican law and the out-of-service order complies with Section 395.13 or 396.9 of Title 49 of the Code of Federal Regulations.