ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setModelCompatibleUpgrades

Function

setModelCompatibleUpgrades

ServerVehiclesTrilogy Hub only

Stores your own list of parts that fit a vehicle model, e.g. for a new model from engineRequestModel.

Syntax

bool setModelCompatibleUpgrades(int model, table list)

Arguments

modelint
Vehicle model ID.
listtable
An array of part IDs.

Returns

true on success.

Example

setModelCompatibleUpgrades(411, { 1010, 1079, 1080 })

Notes

State for scripts. The list is stored on the server, but getVehicleCompatibleUpgrades, getModelCompatibleUpgrades and addVehicleUpgrade still use the game's data.

See also