(vehicleid)
vehicleid ID of the pulling vehicle.
vehicleid
DetachTrailerFromVehicle(vehicleid);
The following functions may be useful, as they are related to this function in one way or another.