Basically Locking vehicles in place like in Rigs Of Rods, Since is no way like that, Remember, This is only a suggestion.
There is a tow truck mod that uses a cable and hook to secure vehicles together, while I'm not programmer I imagine a similar system could be used to secure a car to a flatbed truck.