onClientTrailerAttach
ClienteEvento
Disparado no cliente quando um reboque é engatado num veículo.
addEventHandler("onClientTrailerAttach", root, function(vehicle towedBy) … end)
Parâmetros do handler
| Nome | Tipo | Descrição |
|---|---|---|
| towedBy | vehicle | O veículo que passou a puxar o reboque. |
Source
O reboque.
Exemplo
addEventHandler("onClientTrailerAttach", root, function(towedBy)
if getPedOccupiedVehicle(localPlayer) == towedBy then
outputDebugString("Reboque engatado")
end
end)