From 7dbbe28a5340e508b6d22bd96d73c2d2a305105c Mon Sep 17 00:00:00 2001 From: feelfreetofee <89666307+feelfreetofee@users.noreply.github.com> Date: Sat, 20 Aug 2022 19:49:02 +0200 Subject: [PATCH] fix(es_extended/client/functions.lua) Livery Mod Get/Set-VehicleProperties Natives "GetVehicleLivery" and "SetVehicleLivery" doesn't work anymore. Replaced broken natives in "ESX.Game.GetVehicleProperties" and "ESX.Game.SetVehicleProperties" with "GetVehicleMod" and "SetVehicleMod" with modType 48 --- [esx]/es_extended/client/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/[esx]/es_extended/client/functions.lua b/[esx]/es_extended/client/functions.lua index d89dbcde..a3f99f99 100644 --- a/[esx]/es_extended/client/functions.lua +++ b/[esx]/es_extended/client/functions.lua @@ -823,7 +823,7 @@ function ESX.Game.GetVehicleProperties(vehicle) modTrimB = GetVehicleMod(vehicle, 44), modTank = GetVehicleMod(vehicle, 45), modDoorR = GetVehicleMod(vehicle, 47), - modLivery = GetVehicleLivery(vehicle), + modLivery = GetVehicleMod(vehicle, 48), modLightbar = GetVehicleMod(vehicle, 49) } else @@ -1045,7 +1045,7 @@ function ESX.Game.SetVehicleProperties(vehicle, props) end if props.modLivery then - SetVehicleLivery(vehicle, props.modLivery) + SetVehicleMod(vehicle, 48, props.modLivery, false) end if props.windowsBroken then