Guest User

Untitled

a guest
Sep 22nd, 2014
381
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- client side fix for issue 1655 (trailer desync) crashes with towtruck
  2. addEventHandler("onClientElementStreamIn",root,function()
  3.         if getElementType( source ) == "vehicle" then
  4.             local trailer = getVehicleTowedByVehicle(source)
  5.             if trailer then
  6.                 outputDebugString("REATTACHING",3)
  7.                 detachTrailerFromVehicle(source)
  8.                 attachTrailerToVehicle(source,trailer)
  9.             end
  10.         end
  11.  
  12. end)
RAW Paste Data