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

Function

getModelCompatibleUpgrades

Server and clientVehiclesTrilogy Hub only

Like getVehicleCompatibleUpgrades, but for a model number, without creating a vehicle. Useful in a shop that shows parts before buying the car.

Syntax

table getModelCompatibleUpgrades(int model [, int slot = nil])

Arguments

modelint
Vehicle model ID.
slotint, optional = nil
Slot number 0-16.

Returns

An array of part IDs.

Example

local parts = getModelCompatibleUpgrades(562)
outputDebugString("Elegy ma " .. #parts .. " czesci tuningu")

See also