ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onTrailerDetach

Event

onTrailerDetach

ServerVehiclesIdentical to MTA:SA

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)

See also