# getVehicleTowingVehicle (Shared)

> Returns the vehicle that is towing this vehicle.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Vehicles
- **URL**: https://wiki.mymp.gg/en/getVehicleTowingVehicle

## Syntax

```lua
vehicle|false getVehicleTowingVehicle(vehicle vehicle)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vehicle` | `vehicle` | The towed vehicle. |

## Returns

The towing vehicle, or `false` if nothing is towing this one.

## Example

```lua
addEventHandler("onTrailerAttach", root, function()
    local truck = getVehicleTowingVehicle(source)
    if truck then
        setVehicleOverrideLights(truck, 2)
    end
end)
```

## See also

- [getVehicleTowedByVehicle (Shared)](https://wiki.mymp.gg/en/getVehicleTowedByVehicle.md): Returns the trailer or vehicle this vehicle is towing.
- [onTrailerDetach (Server)](https://wiki.mymp.gg/en/onTrailerDetach.md): Fired on the server when a trailer is unhitched from the vehicle towing it.
