mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 01:38:52 +00:00
Add pearl + wheels support
This commit is contained in:
@@ -667,8 +667,14 @@ ESX.Game.SetVehicleProperties = function(vehicle, props)
|
||||
SetVehicleColours(vehicle, color1, props.color2)
|
||||
end
|
||||
|
||||
if props.pearlescentColor ~= nil and props.wheelColor ~= nil then
|
||||
SetVehicleExtraColours(vehicle, props.pearlescentColor, props.wheelColor)
|
||||
if props.pearlescentColor ~= nil then
|
||||
local pearlescentColor, wheelColor = GetVehicleExtraColours(vehicle)
|
||||
SetVehicleExtraColours(vehicle, props.pearlescentColor, wheelColor)
|
||||
end
|
||||
|
||||
if props.wheelColor ~= nil then
|
||||
local pearlescentColor, wheelColor = GetVehicleExtraColours(vehicle)
|
||||
SetVehicleExtraColours(vehicle, pearlescentColor, props.wheelColor)
|
||||
end
|
||||
|
||||
if props.wheels ~= nil then
|
||||
|
||||
Reference in New Issue
Block a user