M MY Multiplayer: Wiki
Lado
Tipo

onClientTrailerDetach

ClienteEvento

Disparado no cliente quando um reboque é solto do veículo que o puxava.

addEventHandler("onClientTrailerDetach", root, function(vehicle towedBy) … end)

Parâmetros do handler

NomeTipoDescrição
towedByvehicleO veículo que puxava o reboque.

Source

O reboque.

Exemplo

addEventHandler("onClientTrailerDetach", root, function(towedBy)
    if getPedOccupiedVehicle(localPlayer) == towedBy then
        outputDebugString("Reboque solto")
    end
end)

Veja também