- Documentation
- Server functions
- setModelCompatibleUpgrades
Function
setModelCompatibleUpgrades
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.