# getVehicleEngineSound (Client)

> Returns the engine and induction sounds `setVehicleEngineSound` put on a vehicle.

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

## Syntax

```lua
string|false getVehicleEngineSound(vehicle vehicle)
```

## Parameters

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

## Returns

Two values: the engine sound's name and the induction sound's name, each `false` when it was not replaced. A single `false` if the element is not a vehicle on this client.

## Example

```lua
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
    local engine, induction = getVehicleEngineSound(vehicle)
    outputDebugString(tostring(engine) .. " / " .. tostring(induction))
end
```

## See also

- [setVehicleEngineSound (Client)](https://wiki.mymp.gg/en/setVehicleEngineSound.md): Replaces a vehicle's engine sound on this client with a sound set from the mounted packs.
- [getVehicleEngineSounds (Client)](https://wiki.mymp.gg/en/getVehicleEngineSounds.md): Lists the engine sound sets the mounted packs bring.
