Set car position during simulation

Is it possible to set a car position mid simulation using C code? An example would be a request to reset the car to the centre of the track if it drives off.

Isaac