- Documentation
- Server events
- onTrailerDetach
Event
onTrailerDetach
A trailer was detached.
Handler
addEventHandler("onTrailerDetach", root, function(theTruck) ... end)Parameters
theTruckvehicle- The vehicle that towed it.
Source
source is the trailer.
Example
addEventHandler("onTrailerDetach", root, function(truck)
outputServerLog("Odczepiono przyczepę od " .. getVehicleName(truck))
end)