# getVehicleUpgrades (Shared)

> Returns every tuning upgrade fitted on a vehicle.

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

## Syntax

```lua
table|false getVehicleUpgrades(vehicle vehicle)
```

## Parameters

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

## Returns

A list of the upgrades' model names, or `false` if they could not be read.

## Example

```lua
addCommandHandler("upgrades", function(player)
    local vehicle = getPedOccupiedVehicle(player)
    if vehicle then
        outputDebugString(table.concat(getVehicleUpgrades(vehicle), ", "))
    end
end)
```

### Coming from MTA

MTA uses numeric upgrade ids (1000 to 1193). Here an upgrade is its model's name, and the slots are the ones the mounted packs declare.

## See also

- [getVehicleUpgradeOnSlot (Shared)](https://wiki.mymp.gg/en/getVehicleUpgradeOnSlot.md): Returns the upgrade fitted on one slot of a vehicle.
- [getVehicleCompatibleUpgrades (Shared)](https://wiki.mymp.gg/en/getVehicleCompatibleUpgrades.md): Returns the tuning upgrades that fit a vehicle's model.
- [removeVehicleUpgrade (Shared)](https://wiki.mymp.gg/en/removeVehicleUpgrade.md): Takes a tuning upgrade off a vehicle.
