esx_core icon indicating copy to clipboard operation
esx_core copied to clipboard

bug (es_extended): livery saving

Open iSentrie opened this issue 2 years ago • 1 comments

There are 2 types of liveries and at least one isn't saving after recent changes to vehicle properties function.

  1. Type GetVehicleLivery(vehicle)

  2. 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

iSentrie avatar Jun 02 '22 16:06 iSentrie

Is this fixed in your pr?

FBFezz avatar Jul 01 '22 19:07 FBFezz

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?

iSentrie avatar Sep 09 '22 14:09 iSentrie

this is now fixed!

Benzo00 avatar Sep 10 '22 23:09 Benzo00