M MY Multiplayer: Wiki
Lado
Tipo

onClientTrailerAttach

ClienteEvento

Disparado no cliente quando um reboque é engatado num veículo.

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

Parâmetros do handler

NomeTipoDescrição
towedByvehicleO 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)

Veja também