v5.1.63 patch
Flatbeds keep their loaded cars, matte paint kept and persistent vehicle fixes
4changes

Flatbeds keep their loaded cars, matte paint kept and persistent vehicle fixes
4changes

[02] Release
A qs-mechanic-creator flatbed stored with cars on it now keeps them, with all their mods, and brings them back when it is taken out. Matte and other paint finishes are no longer lost, persistent vehicles no longer overwrite changes saved by other scripts, and other players now see custom RGB xenon lights in a matching colour.
Nothing to do in the database or the config.
Two new files. client/modules/flatbed.lua and server/modules/flatbed.lua were added. Replace the whole script so they are not left out.
Editable files changed. client/custom/framework/esx.lua and client/custom/framework/qb.lua were updated. If you edited them, merge the xenon line (GetClosestXenonColorIndex) by hand instead of replacing the whole file.
qs-advancedgarages/fxmanifest.luaqs-advancedgarages/client/main.luaqs-advancedgarages/client/modules/menu.luaqs-advancedgarages/client/modules/flatbed.lua is new.qs-advancedgarages/client/custom/framework/esx.luaqs-advancedgarages/client/custom/framework/qb.luaqs-advancedgarages/server/main.luaqs-advancedgarages/server/modules/sync.luaqs-advancedgarages/server/modules/flatbed.lua is new.Storing a flatbed with cars on it stores those cars with it, all mods included, and they come back loaded when the flatbed is taken out. Works in normal and job garages; a rented job flatbed cannot keep a load and must be unloaded first. The server checks that the cars are really on the flatbed, so it cannot be used to delete other players' cars or to create cars that were never there.
Custom xenon lights are now shown to other players in the closest game colour instead of the stock blue.
Matte, metallic, chrome and other finishes on custom colours are no longer lost when a vehicle is taken out of a garage or with persistent vehicles.
The periodic save of vehicles left on the street now only updates position, damage, health, lock state and fuel, so tuning saved by other scripts (for example a mechanic) is kept.