# getVehicleUpgradeSlots (Shared)

> Returns the names of every upgrade slot the mounted packs declare.

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

## Syntax

```lua
table getVehicleUpgradeSlots()
```

## Returns

A list of the slots' names. Position `i` in the list is the slot with index `i - 1`.

## Example

```lua
for index, slot in ipairs(getVehicleUpgradeSlots()) do
    outputDebugString((index - 1) .. ": " .. slot)
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

- [getVehicleUpgradeSlotName (Shared)](https://wiki.mymp.gg/en/getVehicleUpgradeSlotName.md): Returns the name of an upgrade slot, from the slot's index or from an upgrade that goes on it.
- [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.
