Towing Trailers with a Modded vehicle

I want to add the ability to tow trailers to this mod. I tried adding the flags and the trailer model names in the vehicles.meta but I can't get it to attach to any trailers. Thanks in advance for any help.