This event is triggered when a trailer gets detached from its towing vehicle.
- towedBy: the vehicle that was towing the trailer.
The source of this event is the trailer that is now detached.
This example outputs to the player that's towing the trailer that "The vehicle is now detached". (TESTED!)
addEventHandler("onClientTrailerDetach",root,function(towedBy) player = getVehicleOccupant(towedBy,0) outputChatBox("The vehicle is now detached.",player) end)
Client vehicle events