The 97 I just bought from the city water and lighting side has a micro switch on the pedal, kinda like the brake light switch on the brake pedal.
So I wouold say it's factory unless the city is putting propane or nitrous on the work trucks!
Where do you get a TPS or pedal assembly?
Can you replace just the sensor?