esx_core
esx_core copied to clipboard
bug (es_extended): livery saving
There are 2 types of liveries and at least one isn't saving after recent changes to vehicle properties function.
-
Type
GetVehicleLivery(vehicle)
-
Type I used this for modIndex
SetVehicleMod(vehicle --[[ Vehicle ]], modType --[[ integer ]], modIndex --[[ integer ]], customTires --[[ boolean ]])
So this livery set by GetVehicleMod
native, modIndex
for livery is VMT_LIVERY_MOD = 48
In conclusion SetVehicleProperties
or GetVehicleProperties
fails to save/apply this liveries to a vehicle.
https://github.com/esx-framework/esx-legacy/blob/5fa75840e65d625160204f373014f09d3b10bc51/%5Besx%5D/es_extended/client/functions.lua#L831
Is this fixed in your pr?
idk, still broken for me even with latest changes
https://github.com/esx-framework/esx-legacy/commit/7b3cd152542520e83d0a01d9efe8448490860d1a
this didn't fix anything for me, can someone confirm that it works?
this is now fixed!