If it is an old Harley Davidson cart (three wheeler) the gas pedal activates the starter/generator and the ignition circuit.
An interesting note on those carts is that they have no transmission. For reverse the starter/gen simply runs the other way.
Instead of a lobe for the points the machines simply had an off-center shaft that worked both ways.
I worked summers fixing these carts while going to school.