- Documentation
- Shared functions
- getVehicleUpgradeSlot
Function
getVehicleUpgradeSlot
Returns the tuning slot number (0-16) a part belongs to.
Syntax
int getVehicleUpgradeSlot(int upgrade)Arguments
upgradeint- Part ID 1000-1193.
Returns
Slot number, or false for an unknown part.
Example
outputDebugString("1010 jest w slocie " .. getVehicleUpgradeSlot(1010))
See also
getVehicleUpgradeSlotNameReturns the English name of a tuning slot, given a slot number or a part ID. Slots: 0 Hood, 1 Vent, 2 Spoiler, 3 Sideskirt, 4 Front Bullbars, 5 Rear Bullbars, 6 Headlights, 7 Roof, 8 Nitro, 9 Hydraulics, 10 Stereo, 11 Unknown, 12 Wheels, 13 Exhaust, 14 Front Bumper, 15 Rear Bumper, 16 Misc.getVehicleUpgradeOnSlotReturns the ID of the part fitted in the given tuning slot, or 0 when the slot is empty. Slot numbers 0-16 are described bygetVehicleUpgradeSlotName.