-- @/lua/ge/extensions/core/trailerRespawn.lua:165
local function coupleTrailer(vehId)
if not trailerReg[vehId] then return end
local veh = getObjectByID(vehId)
if not veh then return end
local couplerTag = core_vehicles.vehsCouplerTags[vehId][trailerReg[vehId].node]
if core_vehicles.couplerTagsOptions[couplerTag] == "autoCouple" then
veh:queueLuaCommand(string.format('beamstate.activateAutoCoupling("%s")', couplerTag))
end
end