M MY Multiplayer: Wiki
Lado
Tipo

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

NombreTipoDescripción
towedByvehicleEl 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)

Ver también