M MY Multiplayer: Wiki
Side
Kind

getVehicleUpgradeSlots

Shared

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

table getVehicleUpgradeSlots()

Returns

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

Example

for index, slot in ipairs(getVehicleUpgradeSlots()) do
    outputDebugString((index - 1) .. ": " .. slot)
end
Coming from MTAMTA 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