onClientTrailerAttach
ClienteEvento
Se dispara en el cliente cuando un remolque se engancha a un vehículo.
addEventHandler("onClientTrailerAttach", root, function(vehicle towedBy) … end)
Parámetros del handler
| Nombre | Tipo | Descripción |
|---|---|---|
| towedBy | vehicle | El vehículo que pasó a arrastrar el remolque. |
Source
El remolque.
Ejemplo
addEventHandler("onClientTrailerAttach", root, function(towedBy)
if getPedOccupiedVehicle(localPlayer) == towedBy then
outputDebugString("Remolque enganchado")
end
end)