mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
Merge pull request #1846 from seltonmt012/fix/vehicle-secondary-colour
fix(esx_lib/game): keep the secondary colour when the primary is custom
This commit is contained in:
@@ -462,7 +462,7 @@ function xLib.game.setVehicleProperties(vehicle, props)
|
||||
if type(props.color2) == "table" then
|
||||
SetVehicleCustomSecondaryColour(vehicle, props.color2[1], props.color2[2], props.color2[3])
|
||||
else
|
||||
SetVehicleColours(vehicle, props.color1 or colorPrimary, props.color2)
|
||||
SetVehicleColours(vehicle, type(props.color1) == "number" and props.color1 or colorPrimary, props.color2)
|
||||
end
|
||||
end
|
||||
if props.pearlescentColor ~= nil then
|
||||
|
||||
Reference in New Issue
Block a user