v1.8.0 minor
Default vehicle tuning per garage, blips you can turn off, and an ESX crash fixed
7changes

Default vehicle tuning per garage, blips you can turn off, and an ESX crash fixed
7changes

[02] Release
Each fleet garage can now give every unit of a model the same look when it comes out: variant/livery (read from the game by name, like the Maverick's air police and air ambulance), factory or custom paint, tint, plate, extras and upgrades, all picked visually and previewed in 3D before saving. Garage and dealer map blips can be turned off globally or one by one. Fixed the ESX error in GetCharacterData that broke the citizen, agent, leaderboard and prison lists when a character no longer existed.
Replace every file in the resource. The NUI, all fifteen translations and the garage modules changed, so drop the whole folder in.
What to keep from your current install: anything you edited under config/ and custom/. This release changes one file under custom/, so merge your edits into the new copy rather than keeping your old file:
server/custom/framework/esx.lua — GetCharacterData no longer crashes on a character that is not in users, and works when your users table lacks a column such as phone_number. If you are using a patched esx.lua you were sent for the GetCharacterData error, switch to this one — the fix is now official.config/shared/garages.lua gained a Blips = { Garages = true, Dealers = true } default. You do not have to merge it: a missing key means blips are shown, exactly as before.
New files, nothing to merge:
client/modules/garage/tuning_preview.lua — the 3D previewNothing to run. The tuning is stored inside the existing garage configuration.
Admin → Garages & Dealers → a garage → Default vehicle tuning. Add one look per vehicle model:
The look is applied every time a unit leaves the garage, in menu garages and in parked-bay garages alike, and parked units update as soon as you save. Anything on Keep is left alone and damage is never touched. A per-unit livery preset from qs-police-veh-creator is applied after it and still wins.
Global settings → Map blips turns every garage blip or every dealer blip off at once, and each garage and dealer has its own Show on map switch. A blip appears only when both are on; the point, marker and prompt keep working either way.
Every unit of a model leaving the garage gets the same variant/livery, paint, pearlescent, wheel colour, window tint, plate style, extras and upgrades. Anything left on Keep is untouched and damage is kept.
Liveries are read from the game with their names (a Maverick shows air police and air ambulance), colours come from the game's palette or a colour picker, and only the extras and upgrades the model has are offered.
New looks start on the model's original paint, so police cars and helicopters come out in their own colours unless someone chooses others.
Shows the vehicle with the look in front of the admin with a rotating camera and emergency lights, then returns to the tablet. Copy from my vehicle and Try on my vehicle work with the car you are sitting in.
A global switch for all garages and one for all dealers in Global settings, plus a Show on map switch on each garage and dealer.
A character deleted from multicharacter that still had duty hours, awards, fines or a jail record made GetCharacterData error out, and took the citizen and agent profiles, the leaderboard and the prison lists down with it. It now answers "Unknown" like QBCore and Qbox, and a users table without a column such as phone_number no longer fails the lookup. This file is under custom/: if you use a patched esx.lua for this error, replace it with the new one.
ESX never reported a character's gender, so everyone was dressed in the male outfit. It is now read from the users table.