ESX.Game.SetVehicleProperties fix

This commit is contained in:
MrNewb committed 2025-06-12 08:24:12 -04:00
1 parent 5b0e7074fe
commit 61f3f09c19
1 file changed
+9
+9
View File
@@ -175,6 +175,15 @@ Framework.SetVehicleProperties = function(vehicle, properties)
end
end
end
-- Every framework version does this just a diffrent key I guess?
if properties.color1 and type(properties.color1) == 'table' then
properties.customPrimaryColor = {properties.color1[1], properties.color1[2], properties.color1[3]}
properties.color1 = nil
end
if properties.color2 and type(properties.color2) == 'table' then
properties.customSecondaryColor = {properties.color2[1], properties.color2[2], properties.color2[3]}
properties.color2 = nil
end
return true, ESX.Game.SetVehicleProperties(vehicle, properties)
end