For those wondering how to rotate the cars.
Step One
For each trailer add the rotate variables
['thauler'] = {x = 0.0, y = 0.0, z = 0.0, rotx = 0.0, roty = 0.0, rotz = 0.0}
Next
define new varibles below
local xoff = 0.0
local yoff = 0.0
local zoff = 0.0
They should look like this
local xrotoff = 0.0
local yrotoff = 0.0
local zrotoff = 0.0
Next
set the variables to what u entered below
xoff = posOffset.x
yoff = posOffset.y
zoff = posOffset.z
should look like this
xrotoff = posOffset.rotx
yrotoff = posOffset.roty
zrotoff = posOffset.rotz
Lastely add them to the attach entity refrence
AttachEntityToEntity(targetVehicle, vehicle, GetEntityBoneIndexByName(vehicle, 'bodyshell'), 0.0 + xoff, -1.5 + yoff, 0.0 + zoff, 0.0 + xrotoff, 0.0 + yrotoff, 0.0 + zrotoff, 1, 1, 0, 1, 0, 1)
X: Front and Back Tilt | + will tilt ur nose up, - will tilt the back end up.
Y: Roll Left and Right Tilt | + Will tilt the body to the right, - will tilt the body to the left.
Z: Left and Right Turn | + Will turn the car to the left, - will turn the car to the right