ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getVehicleUpgradeSlot

Function

getVehicleUpgradeSlot

Server and clientVehiclesTrilogy Hub only

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