Simple Cruise Control
This is a simple cruise control script which can be activated with B key (but you can change it to any other key). If you activate the cruise control, the vehicle will keep the speed as long as you don't hit anything or you don't use the accelerate (W) or the brake (S) keys (and of course you can turn off the cruise control with B key).
I tried to "optimize" the code (so I reduced the function calls in onUpdate, that's why the code may seem weird a bit).
If you find any bugs, let me know!
(The speedometer is not included in the script!)