No state trooper shall be entitled to any costs, fees, or mileage for attending any court, but instead the proper authority shall collect such costs, fees, and mileage as may be due such officers for attendance on any court or for any official act and shall promptly turn the same over to the Director of Public Safety, who shall cover the same into the State Treasury to the credit of the General Fund.
Ala. Code § 32-2-21 (1975)