Vehicle Variants
Client-side
Server-side
Shared
Vehicle variants can be anything from different adverts to additional parts of the model. Related functions: setVehicleVariant, getVehicleVariant and createVehicle.
Adding Variants
Adding variants requires modifying your DFF by adding a part of the model you wish to be a variant and naming it extra1, extra2, extra3, extra4, or extra5 then setting its parent to the chassis_dummy; this tells GTA it has variant information.
Spawning Custom Variants
To spawn custom variants is to implicitly specify which variants you want in createVehicle, or change the variant of an already existing vehicle using setVehicleVariant. Also, any invalid variant will show up as the default model with no variation.
GTA: San Andreas Vehicle Variants List
Above table serialized in Lua:
local vehicleVariantsByModel = { [404] = {0, 1, 2}, [407] = {0, 1, 2}, [408] = {0}, [413] = {0}, [414] = {0, 1, 2, 3}, [415] = {0, 1}, [416] = {0, 1}, [422] = {0, 1}, [423] = {0, 1}, [424] = {0}, [428] = {0, 1}, [433] = {0, 1}, [434] = {0}, [435] = {0, 1, 2, 3, 4, 5}, [437] = {0, 1}, [439] = {0, 1, 2}, [440] = {0, 1, 2, 3, 4, 5}, [442] = {0, 1, 2}, [453] = {0, 1}, [455] = {0, 1, 2}, [456] = {0, 1, 2, 3}, [457] = {0, 1, 2, 3, 4, 5}, [459] = {0}, [470] = {0, 1, 2}, [472] = {0, 1, 2}, [478] = {0, 1, 2}, [482] = {0}, [483] = {0, 1}, [484] = {0}, [485] = {0, 1, 2}, [499] = {0, 1, 2, 3}, [500] = {0, 1}, [502] = {0, 1, 2, 3, 4, 5}, [503] = {0, 1, 2, 3, 4, 5}, [504] = {0, 1, 2, 3, 4, 5}, [506] = {0}, [521] = {0, 1, 2, 3, 4}, [522] = {0, 1, 2, 3, 4}, [523] = {0}, [535] = {0, 1}, [543] = {0, 1, 2, 3, 4}, [552] = {0, 1}, [556] = {0, 1, 2}, [557] = {0, 1}, [571] = {0, 1}, [581] = {0, 1, 2, 3, 4}, [583] = {0, 1}, [595] = {0, 1}, [600] = {0, 1}, [601] = {0, 1, 2, 3}, [605] = {0, 1, 2, 3, 4}, [607] = {0, 1, 2}, [555] = {0, 1}, [477] = {0},}